morrySnow commented on code in PR #44751:
URL: https://github.com/apache/doris/pull/44751#discussion_r1862267970


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/CreateUserStmt.java:
##########
@@ -153,8 +153,8 @@ public void analyze(Analyzer analyzer) throws UserException 
{
 
         userIdent.analyze();
 
-        if (userIdent.isRootUser()) {
-            ErrorReport.reportAnalysisException(ErrorCode.ERR_COMMON_ERROR, 
"Can not create root user");
+        if (userIdent.isSystemUser()) {

Review Comment:
   i think we should not prohibit create admin since admin maybe dropped in 
privous version



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to