You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/07/16 08:34:14 UTC

[doris] branch repair_outer_join_0714 updated: fix tuple is null (#10911)

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

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


The following commit(s) were added to refs/heads/repair_outer_join_0714 by this push:
     new 2435086045 fix tuple is null (#10911)
2435086045 is described below

commit 2435086045321909f69609010f9579116b39ab4f
Author: EmmyMiao87 <52...@qq.com>
AuthorDate: Sat Jul 16 16:34:09 2022 +0800

    fix tuple is null (#10911)
---
 .../java/org/apache/doris/analysis/TupleIsNullPredicate.java   | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java
index d6e66a525c..a7e725b0a2 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java
@@ -198,10 +198,16 @@ public class TupleIsNullPredicate extends Predicate {
     public static void substitueListForTupleIsNull(List<Expr> exprs,
             Map<List<TupleId>, TupleId> originToTargetTidMap) {
         for (Expr expr : exprs) {
-            if (!(expr instanceof TupleIsNullPredicate)) {
+            if (!(expr instanceof FunctionCallExpr)) {
                 continue;
             }
-            TupleIsNullPredicate tupleIsNullPredicate = (TupleIsNullPredicate) expr;
+            if (expr.getChildren().size() != 3) {
+                continue;
+            }
+            if (!(expr.getChild(0) instanceof TupleIsNullPredicate)) {
+                continue;
+            }
+            TupleIsNullPredicate tupleIsNullPredicate = (TupleIsNullPredicate) expr.getChild(0);
             TupleId targetTid = originToTargetTidMap.get(tupleIsNullPredicate.getTupleIds());
             if (targetTid != null) {
                 tupleIsNullPredicate.replaceTupleIds(Arrays.asList(targetTid));


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