imay commented on a change in pull request #2641: CreateViewStmt/AlterViewStmt 
support cte and fix bug
URL: https://github.com/apache/incubator-doris/pull/2641#discussion_r362785186
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/AlterViewStmt.java
 ##########
 @@ -54,20 +62,17 @@ public void analyze(Analyzer analyzer) throws 
AnalysisException, UserException {
                     tableName.getTbl());
         }
 
-        if (cols != null) {
-            cloneStmt = viewDefStmt.clone();
-        }
         viewDefStmt.setNeedToSql(true);
-        Analyzer viewAnalyzer = new Analyzer(analyzer);
+        viewDefStmt.analyze(analyzer);
 
 Review comment:
   must analyze view with a new 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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to