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 2020/08/16 15:06:50 UTC

[GitHub] [incubator-doris] morningman commented on pull request #4354: support collate field option in compare predicate sql from datagrip

morningman commented on pull request #4354:
URL: https://github.com/apache/incubator-doris/pull/4354#issuecomment-674537881


   ```
   diff --git a/fe/fe-core/src/main/cup/sql_parser.cup b/fe/fe-core/src/main/cup/sql_parser.cup
   index 4e4e028e4..34f6dbff4 100644
   --- a/fe/fe-core/src/main/cup/sql_parser.cup
   +++ b/fe/fe-core/src/main/cup/sql_parser.cup
   @@ -502,6 +502,7 @@ precedence left KW_INTERVAL;
    precedence left KW_OVER;
    precedence left KW_PARTITION;
    precedence left KW_PARTITIONS;
   +precedence left KW_COLLATE;
    precedence right KW_TEMPORARY;
    precedence right LBRACKET;
   
   @@ -3258,7 +3259,7 @@ select_sublist ::=
        ;
   
    select_list_item ::=
   -    expr:expr opt_collate:collate select_alias:alias
   +    expr:expr select_alias:alias
        {:
            RESULT = new SelectListItem(expr, alias);
        :}
   @@ -3849,7 +3850,7 @@ sign_chain_expr ::=
      ;
   
    expr ::=
   -  non_pred_expr:e
   +  non_pred_expr:e opt_collate:collate
      {: RESULT = e; :}
      | predicate:p
      {: RESULT = p; :}
   ```
   
   you can try above `diff`. I think it works


----------------------------------------------------------------
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:
users@infra.apache.org



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