Skip to content

Commit

Permalink
change list syntax to satisfy lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
BentsiLeviav committed Feb 15, 2024
1 parent ce3d9f7 commit b353cf6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dbt/adapters/clickhouse/dbclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"table",
"incremental",
"ephemeral",
"materialized_view"
"materialized_view",
]


def get_db_client(credentials: ClickHouseCredentials):
driver = credentials.driver
port = credentials.port
Expand Down Expand Up @@ -101,11 +102,11 @@ def __init__(self, credentials: ClickHouseCredentials):
"incremental": {},
"ephemeral": {},
"materialized_view": {},
"general": {}
"general": {},
}
if (
not credentials.allow_automatic_deduplication
and compare_versions(self._server_version(), '22.7.1.2484') >= 0
not credentials.allow_automatic_deduplication
and compare_versions(self._server_version(), '22.7.1.2484') >= 0
):
for materialization in DEDUP_WINDOW_SETTING_SUPPORTED_MATERIALIZATION:
self._model_settings[materialization][DEDUP_WINDOW_SETTING] = '0'
Expand Down

0 comments on commit b353cf6

Please sign in to comment.