heguanhui commented on code in PR #63638:
URL: https://github.com/apache/doris/pull/63638#discussion_r3336438358


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/DropRowPolicyCommand.java:
##########
@@ -74,6 +76,11 @@ public void validate(ConnectContext ctx) throws 
AnalysisException {
         if (user != null) {
             user.analyze();
         }
+        if (!ifExists && !StringUtils.isEmpty(roleName)) {
+            if (!Env.getCurrentEnv().getAuth().doesRoleExist(roleName)) {

Review Comment:
   Doris allows the deletion of roles with row policies, but it does not 
simultaneously clean up the row policies under the roles, which is a flaw in 
itself. I fixed this issue in another PR 
[63313](https://github.com/apache/doris/pull/63313)



-- 
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: [email protected]

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