This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 5d6527c5369 [opt](set operation) INTERSECT should evaluated before others (#39095) (#39437) 5d6527c5369 is described below commit 5d6527c5369ba77a0c73a49246e484d148f82d78 Author: morrySnow <101034200+morrys...@users.noreply.github.com> AuthorDate: Fri Aug 16 11:08:36 2024 +0800 [opt](set operation) INTERSECT should evaluated before others (#39095) (#39437) pick from master #39095 this is a behaviour change PR. set operation INTERSECT should evaluated before others. In Doris history, all set operators have same priority. This PR change Nereids, let it be same with MySQL. --- fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 | 3 ++- 1 file changed, 2 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 20f528a933d..33d04fb8550 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 @@ -347,7 +347,8 @@ query queryTerm : queryPrimary #queryTermDefault - | left=queryTerm operator=(UNION | EXCEPT | MINUS | INTERSECT) + | left=queryTerm operator=INTERSECT setQuantifier? right=queryTerm #setOperation + | left=queryTerm operator=(UNION | EXCEPT | MINUS) setQuantifier? right=queryTerm #setOperation ; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org