Open AlecZorab opened 5 months ago
stretch goal:
(
pl.DataFrame({"symbol": ["a", "a", "b", "b"], "Timestamp": [1, 2, 1, 2], "val": [1, 2, 3, 4]})
.lazy()
.sort("symbol")
.select(["symbol", "val"])
.sort("symbol")
.explain(optimized=True)
)
SORT BY [col("symbol")]
SELECT [col("symbol"), col("val")] FROM
SORT BY [col("symbol")]
DF ["symbol", "Timestamp", "val"]; PROJECT 2/3 COLUMNS; SELECTION: "None"'
I think one of these sorts can be skipped too
Checks
Reproducible example
Log output
Issue description
when performing the same sort twice in, a row one of them could be dropped
Expected behavior
expect output to look like
Installed versions