Skip to content

Commit

Permalink
fix(cube): Retain sort information with Projection pushdown through M…
Browse files Browse the repository at this point in the history
…emoryExec
  • Loading branch information
srh committed Jan 31, 2025
1 parent 93a9a78 commit 4bd7aca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ fn try_swapping_with_memory(
memory.original_schema(),
Some(new_projections),
)
.map(|e| Arc::new(e) as _)
.map(|e| {
// The outer projection should have the correct sort information.
let e = e.with_sort_information(projection.properties().equivalence_properties().oeq_class().orderings.clone());
Arc::new(e) as _
})
})
.transpose()
}
Expand Down

0 comments on commit 4bd7aca

Please sign in to comment.