Skip to content

Commit

Permalink
make null level null
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Nov 11, 2023
1 parent 30ad12f commit 6c022a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions splink/comparison_level_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def validate_distance_threshold(


class NullLevel(ComparisonLevelCreator):
def __init__(self, col_name: str):
super().__init__(col_name)
self.is_null_level = True

def create_sql(self, sql_dialect: SplinkDialect) -> str:
col = self.input_column(sql_dialect)
return f"{col.name_l()} IS NULL OR {col.name_r()} IS NULL"
Expand Down

0 comments on commit 6c022a5

Please sign in to comment.