Skip to content

Commit

Permalink
DAT-18896: excluded table format from diff-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo Savchenko committed Nov 13, 2024
1 parent 98ea245 commit 89c2c1c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ public Change[] fixMissing(DatabaseObject missingObject, DiffOutputControl contr
tblProperties = tblProperties.isEmpty() ? null : tblProperties;
String clusteringColumns = missingObject.getAttribute("clusteringColumns", String.class);
String partitionColumns = missingObject.getAttribute("partitionColumns", String.class);
String tableFormat = missingObject.getAttribute("tableFormat", String.class);
ExtendedTableProperties extendedTableProperties = null;
//so far we intentionally omit tableLocation in generated changelog
if(ObjectUtils.anyNotNull(clusteringColumns, partitionColumns, tblProperties, tableFormat)) {
extendedTableProperties = new ExtendedTableProperties(tableFormat, null, tblProperties,
clusteringColumns, partitionColumns);
//so far we intentionally omit tableLocation and tableFormat in generated changelog
if(ObjectUtils.anyNotNull(clusteringColumns, partitionColumns, tblProperties)) {
extendedTableProperties = new ExtendedTableProperties(null, null, tblProperties, clusteringColumns, partitionColumns);
}

changes[0] = getCreateTableChangeDatabricks(extendedTableProperties, changes);
Expand Down

0 comments on commit 89c2c1c

Please sign in to comment.