Skip to content

polars/polars-streaming-order

Pack Severity Fix Versions
Polars info none, edit by hand Polars 2.0+

Polars 2.0 made streaming the default for lazy queries. Sort on the keys that define the required order before taking a positional slice.

lf.unpivot(on=["x", "y"]).head(2).collect()
lf.unpivot(on=["x", "y"]).sort("variable", "value").head(2).collect()

The first two unpivoted rows had labels b and c with streaming and b and b with the in-memory engine.

Edit the code using the replacement in the example.

Polars 2.0 made streaming the default for lazy queries. Sort on the keys that define the required order before taking a positional slice.

See all rules in the Polars pack.