englefly commented on code in PR #15240: URL: https://github.com/apache/doris/pull/15240#discussion_r1060299884
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/CheckAfterRewrite.java: ########## @@ -45,11 +48,31 @@ public class CheckAfterRewrite extends OneAnalysisRuleFactory { public Rule build() { return any().then(plan -> { checkAllSlotReferenceFromChildren(plan); + checkNoUnbounded(plan); checkMetricTypeIsUsedCorrectly(plan); return null; }).toRule(RuleType.CHECK_ANALYSIS); } + private void checkNoUnbounded(Plan plan) { + List<Expression> unboundedExprs = Lists.newArrayList(); + boolean unbounded = plan.getExpressions().stream().anyMatch( + expr -> { + if (expr.getInputSlots().stream().anyMatch(UnboundSlot.class::isInstance)) { + unboundedExprs.add(expr); + return true; + } else if (expr.getInputSlots().stream().anyMatch(UnboundFunction.class::isInstance)) { + unboundedExprs.add(expr); + return true; + } + return false; Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org