xy720 commented on a change in pull request #2459: fix operator priority URL: https://github.com/apache/incubator-doris/pull/2459#discussion_r358038991
########## File path: fe/src/main/cup/sql_parser.cup ########## @@ -429,9 +429,9 @@ precedence left KW_NOT, NOT; precedence left KW_BETWEEN, KW_IN, KW_IS, KW_EXISTS; precedence left KW_LIKE, KW_REGEXP; precedence left EQUAL, LESSTHAN, GREATERTHAN; -precedence left KW_PIPE; precedence left ADD, SUBTRACT; precedence left AT, STAR, DIVIDE, MOD, KW_DIV; +precedence left KW_PIPE; Review comment: In Mysql 5.7.27 || and | select 23|1||7; 23 select (23|1)||7 237 select 23|(1||7) 23 Priority : || > | || and & select 10&1||7; 0 select (10&1)||7 7 select 10&(1||7) 0 Priority : || > & || and ^ select 10^1||7 27 select (10^1)||7 117 select 10^(1||7) 27 Priority : || > ^ || and ~ select ~1||7 184467440737095516147 select ~(1||7) 18446744073709551598 priority : || < ~ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
