Closed caleb-lindgren closed 1 week ago
Can reproduce.
It may be easier to see the bug using select
- as b
disappears.
df.select(pl.col("a", "b").list.set_intersection("c")).collect()
# shape: (2, 1)
# ┌───────────┐
# │ a │
# │ --- │
# │ list[i64] │
# ╞═══════════╡
# │ [1] │
# │ [2] │
# └───────────┘
It also happens for DataFrames, so doesn't appear to be an optimizer issue.
Checks
Reproducible example
Output:
Log output
No response
Issue description
I am trying to replace
a
witha ^ c
and replaceb
withb ^ c
. If I perform these two operations separately, it works. However, if I try to usepl.col
to select botha
andb
and perform both operations at the same time, insteada
is replaced witha ^ b ^ c
and nothing happens tob
.Expected behavior
When I use
pl.col
to select botha
andb
and perform on each the set interaction withc
, it should behave the same as when I compute the two intersections separately.Installed versions