Skip to content
/ cudf Public
forked from rapidsai/cudf

Commit

Permalink
Join key expressions do not appear in output
Browse files Browse the repository at this point in the history
This is closer to the SQL behaviour and was changed by polars in
pola-rs/polars#17061.
  • Loading branch information
wence- committed Jun 25, 2024
1 parent 87e605f commit 68a5d26
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/cudf_polars/cudf_polars/dsl/ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,13 +594,10 @@ def evaluate(self, *, cache: MutableMapping[int, DataFrame]) -> DataFrame:
if right_policy is None:
# Semi join
lg = join_fn(left_on.table, right_on.table, null_equality)
left = left.replace_columns(*left_on.columns)
table = plc.copying.gather(left.table, lg, left_policy)
result = DataFrame.from_table(table, left.column_names)
else:
lg, rg = join_fn(left_on.table, right_on.table, null_equality)
left = left.replace_columns(*left_on.columns)
right = right.replace_columns(*right_on.columns)
if coalesce and how == "inner":
right = right.discard_columns(right_on.column_names_set)
left = DataFrame.from_table(
Expand Down

0 comments on commit 68a5d26

Please sign in to comment.