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 31775eed888 Remove useless codes (#39807)
31775eed888 is described below

commit 31775eed888af8bc1072c602fd4515dc939d45e9
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Sep 11 23:57:55 2026 +0800

    Remove useless codes (#39807)
---
 .../loader/summary/AssertableFileSummary.java      | 35 -------------
 .../segment/assignment/RowAliasSegmentAssert.java  | 61 ----------------------
 .../jaxb/segment/impl/charset/ExpectedCollate.java | 35 -------------
 .../segment/impl/output/ExpectedOutputColumn.java  | 42 ---------------
 4 files changed, 173 deletions(-)

diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/loader/summary/AssertableFileSummary.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/loader/summary/AssertableFileSummary.java
deleted file mode 100644
index 4368d61f8e1..00000000000
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/loader/summary/AssertableFileSummary.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.it.sql.parser.external.loader.summary;
-
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-
-/**
- * Assertable file summary.
- */
-@RequiredArgsConstructor
-@Getter
-public final class AssertableFileSummary {
-    
-    private final String fileName;
-    
-    private final String sqlCaseFileAccessURL;
-    
-    private final String resultFileAccessURL;
-}
diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/assignment/RowAliasSegmentAssert.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/assignment/RowAliasSegmentAssert.java
deleted file mode 100644
index 03b351900ad..00000000000
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/assignment/RowAliasSegmentAssert.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.assignment;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-import 
org.apache.shardingsphere.sql.parser.statement.core.segment.dml.assignment.RowAliasSegment;
-import 
org.apache.shardingsphere.sql.parser.statement.core.segment.dml.column.ColumnSegment;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.SQLCaseAssertContext;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.column.ColumnAssert;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.assignment.ExpectedRowAlias;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-/**
- * Row alias segment assert.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class RowAliasSegmentAssert {
-    
-    /**
-     * Assert actual row alias segment is correct with expected row alias.
-     *
-     * @param assertContext assert context
-     * @param actual actual row alias segment
-     * @param expected expected row alias
-     */
-    public static void assertIs(final SQLCaseAssertContext assertContext, 
final RowAliasSegment actual, final ExpectedRowAlias expected) {
-        assertThat(assertContext.getText("Row alias name assertion error: "), 
actual.getAlias().getIdentifier().getValue(), is(expected.getAlias()));
-        if (expected.getDerivedColumns().isEmpty()) {
-            assertFalse(actual.getDerivedColumns().isPresent(), 
assertContext.getText("Row alias derived columns assertion error: "));
-        } else {
-            assertTrue(actual.getDerivedColumns().isPresent(), 
assertContext.getText("Row alias derived columns size assertion error: "));
-            assertThat(assertContext.getText("Row alias derived columns size 
assertion error: "),
-                    actual.getDerivedColumns().get().size(), 
is(expected.getDerivedColumns().size()));
-            int count = 0;
-            for (ColumnSegment each : actual.getDerivedColumns().get()) {
-                ColumnAssert.assertIs(assertContext, each, 
expected.getDerivedColumns().get(count));
-                count++;
-            }
-        }
-    }
-}
diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/charset/ExpectedCollate.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/charset/ExpectedCollate.java
deleted file mode 100644
index 4aa470c8f9f..00000000000
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/charset/ExpectedCollate.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.charset;
-
-import lombok.Getter;
-import lombok.Setter;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.AbstractExpectedSQLSegment;
-
-import javax.xml.bind.annotation.XmlAttribute;
-
-/**
- * Expected collate.
- */
-@Getter
-@Setter
-public final class ExpectedCollate extends AbstractExpectedSQLSegment {
-    
-    @XmlAttribute
-    private String name;
-}
diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/output/ExpectedOutputColumn.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/output/ExpectedOutputColumn.java
deleted file mode 100644
index cc7beae12b5..00000000000
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/output/ExpectedOutputColumn.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.output;
-
-import lombok.Getter;
-import lombok.Setter;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.AbstractExpectedSQLSegment;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.projection.ExpectedProjection;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.projection.impl.expression.ExpectedExpressionProjection;
-
-import javax.xml.bind.annotation.XmlElement;
-import java.util.LinkedList;
-import java.util.List;
-
-/**
- * Expected output column.
- */
-@Getter
-@Setter
-public final class ExpectedOutputColumn extends AbstractExpectedSQLSegment {
-    
-    @XmlElement(name = "column-projection")
-    private final List<ExpectedProjection> columnProjections = new 
LinkedList<>();
-    
-    @XmlElement(name = "expression-projection")
-    private final List<ExpectedExpressionProjection> expressionProjections = 
new LinkedList<>();
-}

Reply via email to