EmmyMiao87 commented on a change in pull request #3150: Support non-correlated 
subquery in having clause
URL: https://github.com/apache/incubator-doris/pull/3150#discussion_r397576967
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/SelectStmt.java
 ##########
 @@ -1438,6 +1476,22 @@ public boolean returnsSingleRow() {
         return false;
     }
 
+    @Override
+    public boolean containsCorrelatedPredicate() {
+        // check inline view
+        for (TableRef tableRef : fromClause_.getTableRefs()) {
+            if (tableRef instanceof InlineViewRef) {
+                if (((InlineViewRef) 
tableRef).getViewStmt().containsCorrelatedPredicate()) {
+                    return true;
+                }
+            }
+        }
+        if (whereClause == null) {
+            return false;
+        }
+        return whereClause.isCorrelatedPredicate(getTableRefIds());
 
 Review comment:
   This function has been removed.

----------------------------------------------------------------
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