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 e67e184c0f5 Refactor constructor of HiveShowFunctionsStatement,
HiveShowMaterializedViewsStatement, HiveShowPartitionsStatement,
HiveShowTblpropertiesStatement, HiveShowViewsStatement to empty buildAttributes
(#38341)
e67e184c0f5 is described below
commit e67e184c0f5002ef3089c0887f9c27c34ade339e
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Mar 4 17:30:49 2026 +0800
Refactor constructor of HiveShowFunctionsStatement,
HiveShowMaterializedViewsStatement, HiveShowPartitionsStatement,
HiveShowTblpropertiesStatement, HiveShowViewsStatement to empty buildAttributes
(#38341)
---
.../parser/statement/hive/dal/show/HiveShowFunctionsStatement.java | 6 +++---
.../statement/hive/dal/show/HiveShowMaterializedViewsStatement.java | 6 +++---
.../parser/statement/hive/dal/show/HiveShowPartitionsStatement.java | 6 +++---
.../statement/hive/dal/show/HiveShowTablesExtendedStatement.java | 6 +++---
.../statement/hive/dal/show/HiveShowTblpropertiesStatement.java | 6 +++---
.../sql/parser/statement/hive/dal/show/HiveShowViewsStatement.java | 6 +++---
6 files changed, 18 insertions(+), 18 deletions(-)
diff --git
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowFunctionsStatement.java
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowFunctionsStatement.java
index 18310ce6ea7..0384f5edd47 100644
---
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowFunctionsStatement.java
+++
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowFunctionsStatement.java
@@ -26,17 +26,17 @@ import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DA
/**
* Show functions statement for Hive.
*/
+@Getter
public final class HiveShowFunctionsStatement extends DALStatement {
- @Getter
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public HiveShowFunctionsStatement(final DatabaseType databaseType) {
super(databaseType);
+ attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
}
diff --git
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowMaterializedViewsStatement.java
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowMaterializedViewsStatement.java
index af2b32b1008..e68228d10ea 100644
---
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowMaterializedViewsStatement.java
+++
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowMaterializedViewsStatement.java
@@ -26,17 +26,17 @@ import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DA
/**
* Show materialized views statement for Hive.
*/
+@Getter
public final class HiveShowMaterializedViewsStatement extends DALStatement {
- @Getter
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public HiveShowMaterializedViewsStatement(final DatabaseType databaseType)
{
super(databaseType);
+ attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
}
diff --git
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowPartitionsStatement.java
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowPartitionsStatement.java
index afba9fb262e..1ba90822bc6 100644
---
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowPartitionsStatement.java
+++
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowPartitionsStatement.java
@@ -26,17 +26,17 @@ import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DA
/**
* Show partitions statement for Hive.
*/
+@Getter
public final class HiveShowPartitionsStatement extends DALStatement {
- @Getter
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public HiveShowPartitionsStatement(final DatabaseType databaseType) {
super(databaseType);
+ attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
}
diff --git
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTablesExtendedStatement.java
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTablesExtendedStatement.java
index 80a013a67d6..a712021d1aa 100644
---
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTablesExtendedStatement.java
+++
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTablesExtendedStatement.java
@@ -26,17 +26,17 @@ import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DA
/**
* Show tables extended statement for Hive.
*/
+@Getter
public final class HiveShowTablesExtendedStatement extends DALStatement {
- @Getter
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public HiveShowTablesExtendedStatement(final DatabaseType databaseType) {
super(databaseType);
+ attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
}
diff --git
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTblpropertiesStatement.java
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTblpropertiesStatement.java
index f64b81f1fe8..3d636b9f214 100644
---
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTblpropertiesStatement.java
+++
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowTblpropertiesStatement.java
@@ -26,17 +26,17 @@ import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DA
/**
* Show tblproperties statement for Hive.
*/
+@Getter
public final class HiveShowTblpropertiesStatement extends DALStatement {
- @Getter
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public HiveShowTblpropertiesStatement(final DatabaseType databaseType) {
super(databaseType);
+ attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
}
diff --git
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowViewsStatement.java
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowViewsStatement.java
index c37943f187d..cab98f5de2c 100644
---
a/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowViewsStatement.java
+++
b/parser/sql/statement/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/statement/hive/dal/show/HiveShowViewsStatement.java
@@ -26,17 +26,17 @@ import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DA
/**
* Show views statement for Hive.
*/
+@Getter
public final class HiveShowViewsStatement extends DALStatement {
- @Getter
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public HiveShowViewsStatement(final DatabaseType databaseType) {
super(databaseType);
+ attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
TablelessDataSourceBroadcastRouteSQLStatementAttribute());
}
}