[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:
yinzhijian
2022-07-06 10:37:05 +08:00
committed by GitHub
parent c936abd2a3
commit 0b9f508379

View File

@ -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);
}