This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 887d33c789 [fix](cup) add keywords KW_PERCENT (#21404)
887d33c789 is described below

commit 887d33c789db25dcce8a27320959f6ed92a1eed5
Author: Mingyu Chen <[email protected]>
AuthorDate: Sat Jul 1 16:53:54 2023 +0800

    [fix](cup) add keywords KW_PERCENT (#21404)
    
    Or it may cause some edit log replay error, like parsing create routine 
load stmt, which contains this keyword as
    a column name
---
 fe/fe-core/src/main/cup/sql_parser.cup | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fe/fe-core/src/main/cup/sql_parser.cup 
b/fe/fe-core/src/main/cup/sql_parser.cup
index 08d41b378c..a1f45db907 100644
--- a/fe/fe-core/src/main/cup/sql_parser.cup
+++ b/fe/fe-core/src/main/cup/sql_parser.cup
@@ -7658,6 +7658,8 @@ keyword ::=
     {: RESULT = id; :}
     | KW_PERIOD:id
     {: RESULT = id; :}
+    | KW_PERCENT:id
+    {: RESULT = id; :}
     ;
 
 // Identifier that contain keyword


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to