This is an automated email from the ASF dual-hosted git repository.
terrymanu 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 bb6d436ccd4 Remove useless codes on SchemaRefreshUtilsTest (#39688)
bb6d436ccd4 is described below
commit bb6d436ccd4c3afdbfa67e60a23c1dccc890b63c
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Sep 2 12:34:34 2026 +0800
Remove useless codes on SchemaRefreshUtilsTest (#39688)
---
.../metadata/refresher/util/SchemaRefreshUtilsTest.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git
a/mode/core/src/test/java/org/apache/shardingsphere/mode/metadata/refresher/util/SchemaRefreshUtilsTest.java
b/mode/core/src/test/java/org/apache/shardingsphere/mode/metadata/refresher/util/SchemaRefreshUtilsTest.java
index 1d3930462d6..8238fdd0aa6 100644
---
a/mode/core/src/test/java/org/apache/shardingsphere/mode/metadata/refresher/util/SchemaRefreshUtilsTest.java
+++
b/mode/core/src/test/java/org/apache/shardingsphere/mode/metadata/refresher/util/SchemaRefreshUtilsTest.java
@@ -30,9 +30,6 @@ import
org.apache.shardingsphere.infra.metadata.database.rule.RuleMetaData;
import
org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSphereSchema;
import
org.apache.shardingsphere.infra.metadata.identifier.DatabaseIdentifierContext;
import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
-import
org.apache.shardingsphere.sql.parser.statement.core.segment.generic.bound.TableSegmentBoundInfo;
-import
org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
-import
org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.TableNameSegment;
import
org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
import
org.apache.shardingsphere.sql.parser.statement.core.statement.type.dml.DeleteStatement;
import
org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
@@ -95,18 +92,6 @@ class SchemaRefreshUtilsTest {
new ConfigurationProperties(new Properties()));
}
- private SQLStatementContext createSQLStatementContextWithSchema(final
String schemaName) {
- return createSQLStatementContextWithSchema(new
IdentifierValue(schemaName));
- }
-
- private SQLStatementContext createSQLStatementContextWithSchema(final
IdentifierValue schemaIdentifier) {
- TableNameSegment tableNameSegment = new TableNameSegment(0, 0, new
IdentifierValue("t_order"));
- tableNameSegment.setTableBoundInfo(new TableSegmentBoundInfo(new
IdentifierValue("foo_db"), schemaIdentifier));
- TablesContext tablesContext = new TablesContext(new
SimpleTableSegment(tableNameSegment));
- SQLStatement sqlStatement =
DeleteStatement.builder().databaseType(databaseType).build();
- return new FixtureSQLStatementContext(sqlStatement, tablesContext);
- }
-
private SQLStatementContext createSQLStatementContextWithoutSchema() {
TablesContext tablesContext = new
TablesContext(Collections.emptyList());
SQLStatement sqlStatement =
DeleteStatement.builder().databaseType(databaseType).build();