LazyFrame
has incorrect schema following aggregation of an exploded list column expression
#19562
Closed
2 tasks done
Labels
accepted
Ready for implementation
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
LazyFrame
seems to lose track of the correct schema when aggregating an exploded list expression. This is resolved upon callingcollect
, however it can lead to some difficult bugs if there are lazy operations following the aggregation.Expected behavior
Calling
collect
should not change the schema, which in this case would lead to no assertion error. In particular the LazyFrame schema should know thatc
has aList
type.Installed versions
The text was updated successfully, but these errors were encountered: