Elementwise check on join
expressions is too restrictive
#17895
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
All following expressions results in
InvalidOperationError: All join key expressions must be elementwise.
Log output
No response
Issue description
Since #17517, the expressions allowed in
join
clauses have a check in place to ensure that all rows in both dataframes will be assigned a value. This check is made with the functionis_streamable
. But this checks is currently too restrictive, marking as invalid expressions that should be.This is especially inconvenient because it makes it impossible to use the implicit row index of a dataframe in those expressions, forcing us to add it with
with_row_index()
and drop it at the end with.drop("index")
.Expected behavior
The check should better discriminate between valid and invalid expressions.
Installed versions
The text was updated successfully, but these errors were encountered: