fix: expand on conditional commutative as well

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
Ruihang Xia
2025-07-09 08:17:55 +08:00
committed by discord9
parent af03e89139
commit def9b7c01d

View File

@@ -186,6 +186,7 @@ impl PlanRewriter {
Commutativity::PartialCommutative => {
if let Some(plan) = partial_commutative_transformer(plan) {
self.update_column_requirements(&plan);
self.expand_on_next_call = true;
self.stage.push(plan)
}
}
@@ -194,6 +195,7 @@ impl PlanRewriter {
&& let Some(plan) = transformer(plan)
{
self.update_column_requirements(&plan);
self.expand_on_next_call = true;
self.stage.push(plan)
}
}
@@ -202,7 +204,7 @@ impl PlanRewriter {
&& let Some(transformer_actions) = transformer(plan)
{
debug!(
"PlanRewriter: transformed plan: {:#?}\n from {plan}",
"PlanRewriter: transformed plan: {:?}\n from {plan}",
transformer_actions.extra_parent_plans
);
if let Some(last_stage) = transformer_actions.extra_parent_plans.last() {