Skip to content

Commit

Permalink
actually fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Nov 11, 2024
1 parent 70b366c commit fdff1f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions splink/internals/blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,12 @@ def create_blocked_pairs_sql(
@property
def _parsed_join_condition(self) -> Join:
br = self.blocking_rule_sql
join_condition = parse_one("INNER JOIN r", into=Join).on(
br, dialect=self.sqlglot_dialect
br_flattened = flatten(parse_one(br, dialect=self.sqlglot_dialect)).sql(
dialect=self.sqlglot_dialect
)
return parse_one("INNER JOIN r", into=Join).on(
br_flattened, dialect=self.sqlglot_dialect
) # using sqlglot==11.4.1
return flatten(join_condition)

@property
def _equi_join_conditions(self):
Expand Down

0 comments on commit fdff1f8

Please sign in to comment.