Skip to content

Commit d51ba53

Browse files
HCK-12447: remove unused properties for iceberg tables
1 parent 5440752 commit d51ba53

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

forward_engineering/helpers/awsCliScriptHelpers/glueTableHelper.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ const getGlueTableCreateStatement = (tableSchema, databaseName) => {
2020
OutputFormat: tableSchema.outputFormatClassname,
2121
Compressed: tableSchema.compressed,
2222
NumberOfBuckets: tableSchema.numBuckets,
23-
SerdeInfo: mapSerdeInfo(tableSchema),
24-
BucketColumns: getGlueTableClusteringKeyColumns(tableSchema.properties),
25-
SortColumns: getGlueTableSortingColumns(tableSchema.sortedByKey, tableSchema.properties),
23+
SerdeInfo: handleParameterByTableFormat(tableSchema, () => mapSerdeInfo(tableSchema)),
24+
BucketColumns: handleParameterByTableFormat(tableSchema, () =>
25+
getGlueTableClusteringKeyColumns(tableSchema.properties),
26+
),
27+
SortColumns: handleParameterByTableFormat(tableSchema, () =>
28+
getGlueTableSortingColumns(tableSchema.sortedByKey, tableSchema.properties),
29+
),
2630
StoredAsSubDirectories: tableSchema.StoredAsSubDirectories,
2731
},
2832
Parameters: mapTableParameters(tableSchema),

0 commit comments

Comments
 (0)