[fix](auth) fix create mv not need alter priv of table (#38011) (#38423)

pick: https://github.com/apache/doris/pull/38011
This commit is contained in:
zhangdong
2024-07-31 10:35:03 +08:00
committed by GitHub
parent 017dad8c54
commit d9d7f8de95

View File

@ -890,9 +890,8 @@ public class StmtExecutor {
syncJournalIfNeeded();
analyzer = new Analyzer(context.getEnv(), context);
parsedStmt.analyze(analyzer);
parsedStmt.checkPriv();
}
parsedStmt.checkPriv();
if (prepareStmt instanceof PrepareStmt && !isExecuteStmt) {
handlePrepareStmt();
return;