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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new db5048b5b57 [feature](Nereids) support select ALL (#36029)
db5048b5b57 is described below

commit db5048b5b57d1906663c03b5b823a5f31f90d841
Author: morrySnow <[email protected]>
AuthorDate: Fri Jun 7 15:29:56 2024 +0800

    [feature](Nereids) support select ALL (#36029)
    
    pick from master #35935
---
 fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 | 2 +-
 regression-test/suites/nereids_syntax_p0/select_const.groovy       | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 
b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
index d5b16bc257c..923a642a541 100644
--- a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
+++ b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
@@ -383,7 +383,7 @@ columnAliases
     ;
 
 selectClause
-    : SELECT selectHint? DISTINCT? selectColumnClause
+    : SELECT selectHint? (DISTINCT|ALL)? selectColumnClause
     ;
 
 selectColumnClause
diff --git a/regression-test/suites/nereids_syntax_p0/select_const.groovy 
b/regression-test/suites/nereids_syntax_p0/select_const.groovy
index fff8831c03c..e802fbcca78 100644
--- a/regression-test/suites/nereids_syntax_p0/select_const.groovy
+++ b/regression-test/suites/nereids_syntax_p0/select_const.groovy
@@ -47,4 +47,6 @@ suite("select_with_const") {
     qt_select """
         SELECT col1 AS 'str' FROM select_with_const
     """
+
+    sql "select all 1"
 }


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

Reply via email to