grantRole command is supported in legacy planner but not in nereids(new doris fe planner). you need implement the following grantRole command in nereids:
unsupportedgrantRoleStatement
REVOKE roles+=STRING_LITERAL (COMMA roles+=STRING_LITERAL)* FROM userIdentify