Skip to content

Commit

Permalink
always return --end_of_sql when asking for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
BentsiLeviav committed Feb 13, 2024
1 parent 4cc1265 commit a63cbd7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions dbt/adapters/clickhouse/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,11 @@ def get_model_settings(self, model):
res = []
for key in settings:
res.append(f' {key}={settings[key]}')
if len(res) == 0:
return ''
else:
settings_str = 'SETTINGS ' + ', '.join(res) + '\n'
return f"""
-- end_of_sql
{settings_str}
"""
settings_str = '' if len(res) == 0 else 'SETTINGS ' + ', '.join(res) + '\n'
return f"""
-- end_of_sql
{settings_str}
"""

@available
def get_model_query_settings(self, model):
Expand Down

0 comments on commit a63cbd7

Please sign in to comment.