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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]