Problematic predicate pusdown when filtering based on list index. #17492
Labels
A-optimizer
Area: plan optimization
accepted
Ready for implementation
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
The error occurs because the second filter is applied first, when the list with length 1 is still present. Using
.collect(predicate_pushdown=False)
or.list.get(1, null_on_oob=True)
(#16841) gives the expected result.Expected behavior
The output should not depend on optimizations.
Installed versions
The text was updated successfully, but these errors were encountered: