pl.when(...).otherwise(...)
fails for predicate involving struct fields
#19304
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
The correct behavior can be triggered by switching out
otherwise
for athen
with an explicit negation of the condition, which should be equivalent but is not.This yields the correct output.
Expected behavior
The output dataframe is the correct dataframe shown above.
Installed versions
The text was updated successfully, but these errors were encountered: