morningman commented on a change in pull request #3283: Support setting replica 
quota in db level
URL: https://github.com/apache/incubator-doris/pull/3283#discussion_r406231699
 
 

 ##########
 File path: fe/src/main/cup/sql_parser.cup
 ##########
 @@ -711,8 +712,13 @@ alter_stmt ::=
     :}
     | KW_ALTER KW_DATABASE ident:dbName KW_SET KW_DATA KW_QUOTA 
quantity:quota_quantity
     {:
-        RESULT = new AlterDatabaseQuotaStmt(dbName, quota_quantity);
+        RESULT = new AlterDatabaseQuotaStmt(dbName, QuotaType.DATA, 
quota_quantity);
     :}
+    | KW_ALTER KW_DATABASE ident:dbName KW_SET KW_REPLICA KW_QUOTA 
quantity:quota_quantity
 
 Review comment:
   ```suggestion
       | KW_ALTER KW_DATABASE ident:dbName KW_SET KW_REPLICA KW_QUOTA 
INTEGER_LITERAL: number
   ```
   
   quantity is for quota like 1KB, 1MB, 1GB

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


With regards,
Apache Git Services

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

Reply via email to