imay commented on a change in pull request #309: Optimize quota unit
URL: https://github.com/apache/incubator-doris/pull/309#discussion_r233364923
 
 

 ##########
 File path: 
fe/src/main/java/org/apache/doris/analysis/AlterDatabaseQuotaStmt.java
 ##########
 @@ -45,6 +65,37 @@ public long getQuota() {
         return quota;
     }
 
+    public String getUnit() {
+        return unit;
+    }
+
+    private void getQuotaFromExpression() throws UserException {
+        Pattern r = Pattern.compile(quotaPattern);
+        Matcher m = r.matcher(quotaExpression);
+        if (m.find( )) {
 
 Review comment:
   I think matches is what you want

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to