You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/12/15 02:18:48 UTC

[doris] branch branch-1.1-lts updated: [fix](join)check VecNotImplException in the exception chain (#15049)

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

yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new 0ff642b974 [fix](join)check VecNotImplException in the exception chain (#15049)
0ff642b974 is described below

commit 0ff642b974d845c915a5d865bf75858d119dfb37
Author: starocean999 <40...@users.noreply.github.com>
AuthorDate: Thu Dec 15 10:18:42 2022 +0800

    [fix](join)check VecNotImplException in the exception chain (#15049)
---
 .../src/main/java/org/apache/doris/qe/StmtExecutor.java     | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index f96065f5ba..37a02272aa 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -620,7 +620,18 @@ public class StmtExecutor implements ProfileWriter {
                         VectorizedUtil.switchToQueryNonVec();
                     }
                 } catch (UserException e) {
-                    if (e.getCause() instanceof VecNotImplException) {
+                    boolean isVecNotImp = false;
+                    Throwable self = e;
+                    Throwable child = self.getCause();
+                    while (child != null) {
+                        self = child;
+                        if (self instanceof VecNotImplException) {
+                            isVecNotImp = true;
+                            break;
+                        }
+                        child = self.getCause();
+                    }
+                    if (isVecNotImp) {
                         if (i == analyzeTimes) {
                             throw e;
                         } else {


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