morrySnow commented on code in PR #63638:
URL: https://github.com/apache/doris/pull/63638#discussion_r3316704407
##########
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:
If Doris allows the deletion of a role with a row policy, then it would be
impossible to check whether the role exists here.
--
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]