pl.len()
gives wrong results when evaluated on LazyFrame that contains a broadcasted scalar
#20046
Closed
2 tasks done
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
When using
pl.len()
on a LazyFrame, after using a scalar series that needs to be broadcasted, it returns 1 as a value instead of the actual number of rows. Collecting without selectingpl.len
yields the correct outputExpected behavior
The actual number of rows from the dataframe
Installed versions
The text was updated successfully, but these errors were encountered: