diff --git a/forward_engineering/ddlProvider.js b/forward_engineering/ddlProvider.js index 6ea7cc94..292d5e35 100644 --- a/forward_engineering/ddlProvider.js +++ b/forward_engineering/ddlProvider.js @@ -347,6 +347,9 @@ module.exports = (baseProvider, options, app) => { }); if (tableData.dynamic || tableData.iceberg) { + const isExternalCatalog = tableData.iceberg && tableData.tableExtraProps.catalogMgmt === 'external'; + const tableColumnDefinitions = isExternalCatalog ? '' : columnDefinitions; + const tableExtraOptions = getTableExtraProps({ tableData, tagsStatement, @@ -354,7 +357,7 @@ module.exports = (baseProvider, options, app) => { comment, dataRetentionTime, copyGrants, - columnDefinitions, + columnDefinitions: tableColumnDefinitions, }); return assignTemplates(templates.createDynamicTable, { diff --git a/package-lock.json b/package-lock.json index 16ac33be..f1377e12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "Snowflake", - "version": "0.2.8", + "version": "0.2.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "Snowflake", - "version": "0.2.8", + "version": "0.2.14", "dependencies": { "async": "3.2.6", "axios": "1.7.7", @@ -33,7 +33,7 @@ "simple-git-hooks": "2.11.1" }, "engines": { - "hackolade": "6.1.2", + "hackolade": "7.7.10", "hackoladePlugin": "1.2.0" } },