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 c496ccacfcb [opt](Nereids) support set operation minus (#35601)
c496ccacfcb is described below
commit c496ccacfcb40d0a244852e71906ad8f1417b17c
Author: morrySnow <[email protected]>
AuthorDate: Wed May 29 18:43:34 2024 +0800
[opt](Nereids) support set operation minus (#35601)
pick from master #33582
---
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 | 2 +-
.../main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 d3e184a1c76..3c8da3aac2f 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
@@ -99,7 +99,7 @@ query
queryTerm
: queryPrimary
#queryTermDefault
- | left=queryTerm operator=(UNION | EXCEPT | INTERSECT)
+ | left=queryTerm operator=(UNION | EXCEPT | MINUS | INTERSECT)
setQuantifier? right=queryTerm
#setOperation
;
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
index 06929117f58..cdf7575373b 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
@@ -534,7 +534,7 @@ public class LogicalPlanBuilder extends
DorisParserBaseVisitor<Object> {
LogicalPlan plan;
if (ctx.UNION() != null) {
plan = new LogicalUnion(qualifier, newChildren);
- } else if (ctx.EXCEPT() != null) {
+ } else if (ctx.EXCEPT() != null || ctx.MINUS() != null) {
plan = new LogicalExcept(qualifier, newChildren);
} else if (ctx.INTERSECT() != null) {
plan = new LogicalIntersect(qualifier, newChildren);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]