This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new bc08535285a [fix](Nereids) throw readable exception when meet 
unsupport sup-query (#29147)
bc08535285a is described below

commit bc08535285ac489559b0e50c4c20f84bb2b72ea4
Author: morrySnow <[email protected]>
AuthorDate: Thu Dec 28 13:26:09 2023 +0800

    [fix](Nereids) throw readable exception when meet unsupport sup-query 
(#29147)
---
 fe/fe-core/src/main/java/org/apache/doris/nereids/util/Utils.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/util/Utils.java 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/util/Utils.java
index 456dcafdb2f..baf37c1c647 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/nereids/util/Utils.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/util/Utils.java
@@ -163,8 +163,10 @@ public class Utils {
             List<Expression> correlatedSlots) {
         List<Expression> slots = new ArrayList<>();
         correlatedPredicates.forEach(predicate -> {
-            if (!(predicate instanceof BinaryExpression) && !(predicate 
instanceof Not)) {
-                throw new AnalysisException("UnSupported expr type: " + 
correlatedPredicates);
+            if (!(predicate instanceof BinaryExpression)
+                    && (!(predicate instanceof Not) || !(predicate.child(0) 
instanceof BinaryExpression))) {
+                throw new AnalysisException("Unsupported correlated subquery 
with"
+                        + " non-equals correlated predicate " + 
predicate.toSql());
             }
 
             BinaryExpression binaryExpression;


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

Reply via email to