zhengshiJ commented on code in PR #11454: URL: https://github.com/apache/doris/pull/11454#discussion_r961245267
########## fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/ExpressionTranslator.java: ########## @@ -276,4 +283,30 @@ public Expr visitTimestampArithmetic(TimestampArithmetic arithmetic, PlanTransla arithmetic.getDataType().toCatalogDataType()); } } + + public static org.apache.doris.analysis.AssertNumRowsElement translateAssert( + AssertNumRowsElement assertNumRowsElement) { + return new org.apache.doris.analysis.AssertNumRowsElement(assertNumRowsElement.getDesiredNumOfRows(), + assertNumRowsElement.getSubqueryString(), translateAsserTion(assertNumRowsElement.getAssertion())); + } + + private static org.apache.doris.analysis.AssertNumRowsElement.Assertion translateAsserTion( Review Comment: done ########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSlotReference.java: ########## @@ -286,4 +322,55 @@ public List<Slot> getSlots() { return (List) children(); } } + + /** + * Use the visitor to iterate sub expression. + */ + private static class SubExprAnalyzer<C> extends DefaultExpressionRewriter<C> { 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