You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2021/07/07 02:34:21 UTC

[incubator-doris] branch master updated: Fix null pointer exception in Routine load (#6163)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new e312c0f  Fix null pointer exception in Routine load  (#6163)
e312c0f is described below

commit e312c0f58f3f7005b5b5557ee1b7d9633f60f72f
Author: Xinyi Zou <zo...@foxmail.com>
AuthorDate: Wed Jul 7 10:34:10 2021 +0800

    Fix null pointer exception in Routine load  (#6163)
    
    The where clause in routine load will also be rewritten.
    But there is no connection context.
    The PR fix this problem #6162
---
 .../main/java/org/apache/doris/rewrite/ExtractCommonFactorsRule.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExtractCommonFactorsRule.java b/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExtractCommonFactorsRule.java
index bdf4ed1..d2a760b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExtractCommonFactorsRule.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExtractCommonFactorsRule.java
@@ -148,7 +148,7 @@ public class ExtractCommonFactorsRule implements ExprRewriteRule {
         }
 
         // 3. find merge cross the clause
-        if (analyzer.getContext().getSessionVariable().isExtractWideRangeExpr()) {
+        if (analyzer.getContext() != null && analyzer.getContext().getSessionVariable().isExtractWideRangeExpr()) {
             Expr wideCommonExpr = findWideRangeExpr(clearExprs);
             if (wideCommonExpr != null) {
                 commonFactorList.add(wideCommonExpr);

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