[fix](nereids) fix ut,check bound should be called recursively on the plan node (#10530)
fix ut,check bound should be called recursively on the plan node
This commit is contained in:
@ -161,13 +161,6 @@ public class AnalyzeSSBTest extends TestWithFeService {
|
||||
if (!checkPlanBound(root)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
List<Plan> children = root.children();
|
||||
for (Plan child : children) {
|
||||
if (!checkPlanBound((LogicalPlan) child)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -179,6 +172,13 @@ public class AnalyzeSSBTest extends TestWithFeService {
|
||||
return false;
|
||||
}
|
||||
|
||||
List<Plan> children = plan.children();
|
||||
for (Plan child : children) {
|
||||
if (!checkPlanBound((LogicalPlan) child)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
List<Expression> expressions = plan.getOperator().getExpressions();
|
||||
return expressions.stream().allMatch(this::checkExpressionBound);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user