Skip to content

Commit

Permalink
Merge pull request #154 from liquibase/DAT-17989
Browse files Browse the repository at this point in the history
[DAT-17989] Add tableLocation functionality to createTable
  • Loading branch information
vitaliimak authored Aug 21, 2024
2 parents d2ef6f0 + 2887167 commit c644c30
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public Sql[] generateSql(CreateTableStatement statement, Database database, SqlG
// Databricks can decide to have tables live in a particular location. If null, Databricks will handle the location automatically in DBFS
if (!StringUtils.isEmpty(thisStatement.getTableLocation())) {
finalsql += " LOCATION '" + thisStatement.getTableLocation() + "'";
} else if (thisStatement.getExtendedTableProperties() != null && StringUtils.isNotEmpty(thisStatement.getExtendedTableProperties().getTableLocation())) {
finalsql += " LOCATION '" + thisStatement.getExtendedTableProperties().getTableLocation() + "'";
}

ArrayList<String> clusterCols = thisStatement.getClusterColumns();
Expand Down

0 comments on commit c644c30

Please sign in to comment.