You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/11 07:38:19 UTC

[GitHub] [incubator-doris] littleeleventhwolf commented on a diff in pull request #8906: [feat](sql) support star except modifier

littleeleventhwolf commented on code in PR #8906:
URL: https://github.com/apache/incubator-doris/pull/8906#discussion_r847029355


##########
fe/fe-core/src/main/cup/sql_parser.cup:
##########
@@ -544,6 +544,7 @@ precedence left KW_LIKE, KW_REGEXP;
 precedence left EQUAL, LESSTHAN, GREATERTHAN;
 precedence left ADD, SUBTRACT;
 precedence left AT, STAR, DIVIDE, MOD, KW_DIV;
+precedence left KW_EXCEPT;

Review Comment:
   Because `select * except (field)` always match syntax below. 
   ```
   select_list ::=
   ... ...
       | STAR
       {:
           SelectList list = new SelectList();
           list.addItem(SelectListItem.createStarItem(null));
           RESULT = list;
       :}
   ```



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org