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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 26bdd23e05a branch-2.1: [fix](nereids) analyzing job should not be 
blocked by enable_stats=false #46630 (#46691)
26bdd23e05a is described below

commit 26bdd23e05a8a5064c79c89466049cf1a316539f
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jan 9 22:21:02 2025 +0800

    branch-2.1: [fix](nereids) analyzing job should not be blocked by 
enable_stats=false #46630 (#46691)
    
    Cherry-picked from #46630
    
    Co-authored-by: minghong <[email protected]>
---
 .../src/main/java/org/apache/doris/analysis/AnalyzeTblStmt.java      | 5 -----
 1 file changed, 5 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyzeTblStmt.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyzeTblStmt.java
index 083af1dad09..a320b07e285 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyzeTblStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyzeTblStmt.java
@@ -121,12 +121,7 @@ public class AnalyzeTblStmt extends AnalyzeStmt {
     @Override
     @SuppressWarnings({"rawtypes"})
     public void analyze(Analyzer analyzer) throws UserException {
-        if (!ConnectContext.get().getSessionVariable().enableStats) {
-            throw new UserException("Analyze function is forbidden, you should 
add `enable_stats=true`"
-                    + "in your FE conf file");
-        }
         super.analyze(analyzer);
-
         tableName.analyze(analyzer);
 
         String catalogName = tableName.getCtl();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to