This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 09a318c55de [opt](Nereids) support set operation minus (#33582)
09a318c55de is described below
commit 09a318c55de30d4aedfacc405fb83cb3976e0d45
Author: morrySnow <[email protected]>
AuthorDate: Fri Apr 12 22:17:27 2024 +0800
[opt](Nereids) support set operation minus (#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 754c68ee4ae..74870648786 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
@@ -301,7 +301,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 8dc75102923..5e3a5b70db8 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
@@ -1198,7 +1198,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]