morningman commented on a change in pull request #3539:
URL: https://github.com/apache/incubator-doris/pull/3539#discussion_r422486197



##########
File path: fe/src/main/java/org/apache/doris/catalog/Catalog.java
##########
@@ -6385,7 +6385,10 @@ public void replayDropFunction(FunctionSearchDesc 
functionSearchDesc) {
 
     public void setConfig(AdminSetConfigStmt stmt) throws DdlException {
         Map<String, String> configs = stmt.getConfigs();
-        Preconditions.checkState(configs.size() == 1);
+        // configs can not be null
+        if (configs.size() != 1) {

Review comment:
       This should be done in `AdminSetConfigStmt`'s `analyze` method.




----------------------------------------------------------------
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]



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

Reply via email to