group_by
with map_elements
result incorrectly gets wrapped in a list for lazyframes
#17085
Open
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
Issue description
When running a
group_by
aggregation withmap_elements
in lazy mode, even if the return datatype is specified it will return a schema with that datatype wrapped in a list. This does not happen when running in eager mode.Expected behavior
The return datatype specified by the user should be honoured, e.g. in the example above, the function is set to return just a single value, and not assume that a list of values is being returned.
Installed versions
The text was updated successfully, but these errors were encountered: