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

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new f04bdf34999 [fix](nereids) bug: with sql cache, cascadeContext could 
be null (#39510)
f04bdf34999 is described below

commit f04bdf3499991dd115f8d8fef6cfc28c208dfbf0
Author: minghong <[email protected]>
AuthorDate: Tue Aug 20 10:43:47 2024 +0800

    [fix](nereids) bug: with sql cache, cascadeContext could be null (#39510)
    
    fix thown npe because of conflict between #39431 and #39265
---
 fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java
index dba3a8b0ac4..9d32af433b5 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java
@@ -534,7 +534,7 @@ public class NereidsPlanner extends Planner {
         ExplainLevel explainLevel = getExplainLevel(explainOptions);
         String plan = "";
         String mvSummary = "";
-        if (this.getPhysicalPlan() != null) {
+        if (this.getPhysicalPlan() != null && cascadesContext != null) {
             mvSummary = "\n\n========== MATERIALIZATIONS ==========\n"
                     + 
MaterializationContext.toSummaryString(cascadesContext.getMaterializationContexts(),
                     this.getPhysicalPlan());


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

Reply via email to