This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 94dc34b99f2 [feature](Nereids) support select ALL (#36234)
94dc34b99f2 is described below
commit 94dc34b99f22e63b5886dbdb6ebb927a405b9434
Author: morrySnow <[email protected]>
AuthorDate: Thu Jun 13 14:37:56 2024 +0800
[feature](Nereids) support select ALL (#36234)
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 3c8da3aac2f..2aa21c01f43 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
@@ -135,7 +135,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]