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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7071831740f Refactor constructor of AnalyzeTableStatement to empty 
buildAttributes (#38283)
7071831740f is described below

commit 7071831740f62b82d722abd5776375f2e917d626
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Mar 1 16:19:21 2026 +0800

    Refactor constructor of AnalyzeTableStatement to empty buildAttributes 
(#38283)
---
 .../statement/core/statement/type/dal/AnalyzeTableStatement.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/AnalyzeTableStatement.java
 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/AnalyzeTableStatement.java
index 45d9d24ec16..246011ebf42 100644
--- 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/AnalyzeTableStatement.java
+++ 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/AnalyzeTableStatement.java
@@ -34,15 +34,15 @@ public final class AnalyzeTableStatement extends 
DALStatement {
     
     private final Collection<SimpleTableSegment> tables;
     
-    private SQLStatementAttributes attributes;
+    private final SQLStatementAttributes attributes;
     
     public AnalyzeTableStatement(final DatabaseType databaseType, final 
Collection<SimpleTableSegment> tables) {
         super(databaseType);
         this.tables = tables;
+        attributes = new SQLStatementAttributes(new 
TableSQLStatementAttribute(tables), new 
TableBroadcastRouteSQLStatementAttribute());
     }
     
     @Override
     public void buildAttributes() {
-        attributes = new SQLStatementAttributes(new 
TableSQLStatementAttribute(tables), new 
TableBroadcastRouteSQLStatementAttribute());
     }
 }

Reply via email to