(any|all)_horizontal
evaluate predicates that expand to zero expressions as true
#17515
Closed
2 tasks done
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
I'm not sure if this is a "bug", but it was a bit surprising.
Polars reports a ComputeError for this example as
pl.col(pl.String)
matches 0 columns:But introducing any/all horizontal ends up evaluating to true so all rows are returned:
Expected behavior
Should this raise the same ComputeError?
Installed versions
The text was updated successfully, but these errors were encountered: