Unexpected interaction between pl.when and pl.struct #15703
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
When using a pl.Struct as the output of a when-then-otherwise expression and no otherwise clause is declared, we get a Struct with null fields.
Expected behavior
I would expect a null to be output instead of a struct with null fields, which would be consistent with the pl.when documentation :
Installed versions
The text was updated successfully, but these errors were encountered: