wutiangan commented on a change in pull request #3135: support subquery in case 
when statement
URL: https://github.com/apache/incubator-doris/pull/3135#discussion_r396373763
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/SelectList.java
 ##########
 @@ -83,7 +84,18 @@ public void reset() {
     public void rewriteExprs(ExprRewriter rewriter, Analyzer analyzer)
             throws AnalysisException {
         for (SelectListItem item : items) {
-            if (item.isStar()) continue;
+            if (item.isStar()) {
+                continue;
+            }
+            // when select list contain case when, for now subquery is 
supported in case-when
+            // (or more subquery is supported in future) so subquery all need 
to rewrite
 
 Review comment:
   The meaning of these two lines is not clear。

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to