Skip to content

Commit

Permalink
chore(query): add sort plan before window plan
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed May 23, 2024
1 parent f98fb4d commit 728145f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl<Method: HashMethodBounds, V: Send + Sync + 'static> Debug for AggregateMeta
f.debug_struct("AggregateMeta::Serialized").finish()
}
AggregateMeta::Spilling(_) => f.debug_struct("Aggregate::Spilling").finish(),
AggregateMeta::Spilled(_) => f.debug_struct("Aggregate::Spilling").finish(),
AggregateMeta::Spilled(_) => f.debug_struct("Aggregate::Spilled").finish(),
AggregateMeta::BucketSpilled(_) => f.debug_struct("Aggregate::BucketSpilled").finish(),
AggregateMeta::AggregatePayload(_) => {
f.debug_struct("AggregateMeta:AggregatePayload").finish()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ impl SortAndLimitPushDownOptimizer {
let exchange_sexpr = s_expr.child(0)?;
debug_assert!(matches!(
exchange_sexpr.plan.as_ref(),
RelOperator::Exchange(Exchange::Merge)
RelOperator::Exchange(Exchange::Merge) | RelOperator::Exchange(Exchange::MergeSort)
));

debug_assert!(exchange_sexpr.children.len() == 1);
let exchange_sexpr = exchange_sexpr.replace_plan(Arc::new(Exchange::MergeSort.into()));

Expand Down

0 comments on commit 728145f

Please sign in to comment.