yujun777 commented on code in PR #62453:
URL: https://github.com/apache/doris/pull/62453#discussion_r3116098732


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindExpression.java:
##########
@@ -1952,4 +1959,23 @@ private SimpleExprAnalyzer 
getAnalyzerForOrderByAggFunc(Plan finalInput, Cascade
                 });
         return bindInInputChildScope;
     }
+
+    /**
+     * replaceColumnNameVisitor
+     * replace slot reference to stream virtual column to alias
+     */
+    private static class ReplaceStreamVirtualColumnVisitor extends 
DefaultExpressionRewriter<Void> {

Review Comment:
   there's another method,  we let StreamWrapper's getBaseSchema() = base table 
getBaseSchema() + hidden columns,  but not sure whether it work.
   
   the BindExpression explict calling 
analyzer.analyze(ReplaceStreamVirtualColumnVisitor) may a little work.  if the 
above method cann't resolved,   maybe we should inject the replacer's action 
into the analyzer ?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to