We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a9a78 commit 4bd7acaCopy full SHA for 4bd7aca
datafusion/core/src/physical_optimizer/projection_pushdown.rs
@@ -217,7 +217,11 @@ fn try_swapping_with_memory(
217
memory.original_schema(),
218
Some(new_projections),
219
)
220
- .map(|e| Arc::new(e) as _)
+ .map(|e| {
221
+ // The outer projection should have the correct sort information.
222
+ let e = e.with_sort_information(projection.properties().equivalence_properties().oeq_class().orderings.clone());
223
+ Arc::new(e) as _
224
+ })
225
})
226
.transpose()
227
}
0 commit comments