Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCK-8102: External table options #152

Merged
merged 6 commits into from
Sep 24, 2024
Merged
2 changes: 1 addition & 1 deletion forward_engineering/configs/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
createAsSelect: 'CREATE TABLE IF NOT EXISTS ${name} AS ${selectStatement}${tableOptions};\n',

createExternalTable:
'CREATE EXTERNAL TABLE IF NOT EXISTS \n' +
'CREATE${orReplace} EXTERNAL TABLE${tableIfNotExists}\n' +
'\t${name} (\n' +
'\t\t${column_definitions}${out_of_line_constraints}\n' +
'\t)${tableOptions};\n',
Expand Down
3 changes: 2 additions & 1 deletion forward_engineering/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ module.exports = (baseProvider, options, app) => {
],
comment,
),

orReplace,
tableIfNotExists,
column_definitions: columnDefinitions,
out_of_line_constraints: getOutOfLineConstraints(
isActivated,
Expand Down