This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch 2.1_39095 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 5cc59979a6d302db08accdc31232d6f7d9ca3d25 Author: morrySnow <[email protected]> AuthorDate: Tue Aug 13 19:29:13 2024 +0800 [opt](set operation) INTERSECT should evaluated before others (#39095) 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 7b56e1479c4..5ea1ce2c2e5 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: [email protected] For additional commands, e-mail: [email protected]
