This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new f3c56415d7b [fix](auth) fix create mv not need alter priv of table 
(#38011)
f3c56415d7b is described below

commit f3c56415d7b36c8cab8c130750108584e609acd9
Author: zhangdong <493738...@qq.com>
AuthorDate: Fri Jul 19 15:35:00 2024 +0800

    [fix](auth) fix create mv not need alter priv of table (#38011)
    
    case will add in another pr
---
 fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index 55c553d1ecd..e9fef3ca661 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -979,9 +979,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;


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

Reply via email to