Skip to content

Commit

Permalink
let people inherit from ClickhouseDialect if they want to
Browse files Browse the repository at this point in the history
  • Loading branch information
ADBond committed Jan 7, 2025
1 parent baa3891 commit 0476340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splinkclickhouse/comparison_level_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
self.calculation_method = calculation_method

def create_sql(self, sql_dialect: SplinkDialect) -> str:
if sql_dialect is not ClickhouseDialect():
if not isinstance(sql_dialect, ClickhouseDialect):
raise ValueError(
"This version of `DistanceInKMLevel` is designed only for use "
"with the Clickhouse dialect of SQL.\n"
Expand Down

0 comments on commit 0476340

Please sign in to comment.