This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 882e23f44288f5775bd453a3e967d99f8ff9917a Author: morrySnow <101034200+morrys...@users.noreply.github.com> 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 22fe3355fff..826112d050d 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 @@ -298,7 +298,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 64c3572606f..5087b38dd1e 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 @@ -1186,7 +1186,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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org