snuyanzin commented on code in PR #27292:
URL: https://github.com/apache/flink/pull/27292#discussion_r2577423622


##########
flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl:
##########
@@ -2102,24 +2102,44 @@ SqlAlterMaterializedTable SqlAlterMaterializedTable() :
                     asQuery);
             }
         |
-        <MODIFY> <DISTRIBUTION> {
-                return new SqlAlterMaterializedTableModifyDistribution(
+        <ADD>
+        (
+            <DISTRIBUTION> {
+                return new SqlAlterMaterializedTableAddDistribution(
                 startPos.plus(getPos()),
-                tableIdentifier,
-                SqlDistribution(getPos()));
+                tableIdentifier, SqlDistribution(getPos()));
             }
+        |
+            AlterTableAddOrModify(ctx)
+        |
+            <LPAREN>
+            AlterTableAddOrModify(ctx)
+            (
+                <COMMA> AlterTableAddOrModify(ctx)
+            )*

Review Comment:
   The issue is that previous part for the case of 
   ```sql
   ALTER MATERIALIZED TABLE ADD ...
   ```
   
   and this part is for 
   ```sql
   ALTER MATERIALIZED TABLE ADD  (...)
   ```
   
   As you can see the difference is that in first case it is without 
parentheses and in the second it is with 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to