This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch 2.1_35935 in repository https://gitbox.apache.org/repos/asf/doris.git
commit cbd911bcddcb7f57e5ea5233e5ec1b441c229780 Author: morrySnow <101034200+morrys...@users.noreply.github.com> AuthorDate: Thu Jun 6 11:48:10 2024 +0800 [feature](Nereids) support select ALL (#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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org