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 01ad41b1400 Fix typo in Nereids EXPLAIN output ('planed' → 'planned') 
(#57337)
01ad41b1400 is described below

commit 01ad41b14007663a467840fa7d7f981ae959c517
Author: Hari Krishnan U <[email protected]>
AuthorDate: Mon Dec 1 11:53:19 2025 +0530

    Fix typo in Nereids EXPLAIN output ('planed' → 'planned') (#57337)
    
    Problem Summary: The Nereids planner EXPLAIN command, by default, prints
    a statement with a typo at the end when the plan is generated with
    unknown column statistics, it prints "planed" instead of "planned"
---
 .../java/org/apache/doris/nereids/NereidsPlanner.java  |  2 +-
 .../nereids_p0/stats/col_stats/column_stats.groovy     | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

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 81d5108ce2c..c54f2c13a6f 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
@@ -928,7 +928,7 @@ public class NereidsPlanner extends Planner {
                 plan += "\n\n\n========== STATISTICS ==========\n";
                 if (statementContext != null) {
                     if (statementContext.isHasUnknownColStats()) {
-                        plan += "planed with unknown column statistics\n";
+                        plan += "planned with unknown column statistics\n";
                     }
                 }
         }
diff --git 
a/regression-test/suites/nereids_p0/stats/col_stats/column_stats.groovy 
b/regression-test/suites/nereids_p0/stats/col_stats/column_stats.groovy
index d69601ec8f4..225b40d2c57 100644
--- a/regression-test/suites/nereids_p0/stats/col_stats/column_stats.groovy
+++ b/regression-test/suites/nereids_p0/stats/col_stats/column_stats.groovy
@@ -62,44 +62,44 @@ suite("column_stats") {
 
     explain {
         sql "select * from region"
-        notContains("planed with unknown column statistics")
+        notContains("planned with unknown column statistics")
     }
 
     explain {
         sql "select * from region where r_regionkey=1"
-        contains("planed with unknown column statistics")
+        contains("planned with unknown column statistics")
     }
 
     explain {
         sql "select r_regionkey from region group by r_regionkey"
-        contains("planed with unknown column statistics")
+        contains("planned with unknown column statistics")
     }
 
     explain {
         sql "select r_regionkey from region join nation on 
r_regionkey=n_regionkey"
-        contains("planed with unknown column statistics")
+        contains("planned with unknown column statistics")
     }
 
     sql "alter table region modify column r_regionkey set stats ('ndv'='5', 
'num_nulls'='0', 'min_value'='0', 'max_value'='4', 'row_count'='5');"
     
     explain {
         sql "select * from region where r_regionkey=1"
-        notContains("planed with unknown column statistics")
+        notContains("planned with unknown column statistics")
     }
 
     explain {
         sql "select r_regionkey from region group by r_regionkey"
-        notContains("planed with unknown column statistics")
+        notContains("planned with unknown column statistics")
     }
 
     explain {
         sql "select r_regionkey from region join nation on 
r_regionkey=n_regionkey"
-        notContains("planed with unknown column statistics")
+        notContains("planned with unknown column statistics")
     }
 
     explain {
         sql "select r_name from region join nation on r_regionkey=n_regionkey"
-        notContains("planed with unknown column statistics")
+        notContains("planned with unknown column statistics")
     }
 
     explain {
@@ -107,6 +107,6 @@ suite("column_stats") {
             select r_name 
             from (select r_name, r_regionkey + 1 x from region) T join nation 
on T.x=n_regionkey
             """
-        notContains("planed with unknown column statistics")
+        notContains("planned with unknown column statistics")
     }
 }


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

Reply via email to