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 e0b897dc8f4 Refactor constructor of 
ExportDatabaseConfigurationStatement to empty buildAttributes (#38333)
e0b897dc8f4 is described below

commit e0b897dc8f400b6e9fcff289060f495d55bf7514
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Mar 4 14:03:21 2026 +0800

    Refactor constructor of ExportDatabaseConfigurationStatement to empty 
buildAttributes (#38333)
---
 .../export/ExportDatabaseConfigurationStatement.java        | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/parser/distsql/statement/src/main/java/org/apache/shardingsphere/distsql/statement/type/ral/queryable/export/ExportDatabaseConfigurationStatement.java
 
b/parser/distsql/statement/src/main/java/org/apache/shardingsphere/distsql/statement/type/ral/queryable/export/ExportDatabaseConfigurationStatement.java
index 373d99347a8..957a79e9fb9 100644
--- 
a/parser/distsql/statement/src/main/java/org/apache/shardingsphere/distsql/statement/type/ral/queryable/export/ExportDatabaseConfigurationStatement.java
+++ 
b/parser/distsql/statement/src/main/java/org/apache/shardingsphere/distsql/statement/type/ral/queryable/export/ExportDatabaseConfigurationStatement.java
@@ -18,7 +18,6 @@
 package org.apache.shardingsphere.distsql.statement.type.ral.queryable.export;
 
 import lombok.Getter;
-import lombok.RequiredArgsConstructor;
 import 
org.apache.shardingsphere.distsql.statement.type.ral.queryable.QueryableRALStatement;
 import 
org.apache.shardingsphere.sql.parser.statement.core.segment.dal.FromDatabaseSegment;
 import 
org.apache.shardingsphere.sql.parser.statement.core.statement.attribute.SQLStatementAttributes;
@@ -29,15 +28,18 @@ import java.util.Optional;
 /**
  * Export database configuration statement.
  */
-@RequiredArgsConstructor
+@Getter
 public final class ExportDatabaseConfigurationStatement extends 
QueryableRALStatement {
     
     private final String filePath;
     
-    private final FromDatabaseSegment fromDatabase;
+    private final SQLStatementAttributes attributes;
     
-    @Getter
-    private SQLStatementAttributes attributes;
+    public ExportDatabaseConfigurationStatement(final String filePath, final 
FromDatabaseSegment fromDatabase) {
+        this.filePath = filePath;
+        attributes = new SQLStatementAttributes(new 
FromDatabaseSQLStatementAttribute(fromDatabase));
+        
+    }
     
     /**
      * Get file path.
@@ -50,6 +52,5 @@ public final class ExportDatabaseConfigurationStatement 
extends QueryableRALStat
     
     @Override
     public void buildAttributes() {
-        attributes = new SQLStatementAttributes(new 
FromDatabaseSQLStatementAttribute(fromDatabase));
     }
 }

Reply via email to