From 61b73180ea3f2050cd0ce750cbd7a0351140bec8 Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus Date: Thu, 29 Jan 2026 12:03:58 +0200 Subject: [PATCH] HCK-14588: fix the indentations to avoid issues in Apply to instance --- forward_engineering/ddlProvider/ddlHelpers/tableHelper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/forward_engineering/ddlProvider/ddlHelpers/tableHelper.js b/forward_engineering/ddlProvider/ddlHelpers/tableHelper.js index 6070dc5..2d7319a 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/tableHelper.js +++ b/forward_engineering/ddlProvider/ddlHelpers/tableHelper.js @@ -35,7 +35,7 @@ module.exports = ({ getColumnsList, checkAllKeysDeactivated, commentIfDeactivate { key: 'external_table_clause', getValue: getExternalTableClause }, { key: 'partitioning', getValue: getPartitioning }, { key: 'selectStatement', getValue: getBasicValue('AS') }, - { key: 'tableProperties', getValue: value => value }, + { key: 'tableProperties', getValue: value => _.trim(value) }, ] .map(config => (tableData[config.key] ? wrap(config.getValue(tableData[config.key], tableData)) : '')) .filter(Boolean) @@ -120,7 +120,9 @@ module.exports = ({ getColumnsList, checkAllKeysDeactivated, commentIfDeactivate const expression = getPartitionKeys(value, isActivated); const partitionClause = getPartitionClause(value, isActivated); - return `PARTITION BY ${_.toUpper(_.startsWith(value.partitionBy, 'composite') ? _.last(value.partitionBy.split(' ')) : value.partitionBy)} ${expression}${partitionClause}`; + return _.trim( + `PARTITION BY ${_.toUpper(_.startsWith(value.partitionBy, 'composite') ? _.last(value.partitionBy.split(' ')) : value.partitionBy)} ${expression}${partitionClause}`, + ); } return '';