Skip to content

Commit 1ffe4b0

Browse files
committed
Leave if empty
1 parent 3984ce1 commit 1ffe4b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/polars-expr/src/expressions/sortby.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ impl PhysicalExpr for SortByExpr {
368368
};
369369

370370
let sort_by_s = sort_by_s.pop().unwrap();
371+
if sort_by_s.is_empty() {
372+
return Ok(ac_sort_by);
373+
}
371374
let groups = ac_sort_by.groups();
372375

373376
let (check, groups) = POOL.join(

0 commit comments

Comments
 (0)