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

panjuan 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 40fdc475e62 Remove useless code on OutputClauseAssert (#29986)
40fdc475e62 is described below

commit 40fdc475e62c0110d0988a5dbf0d02593e0a5398
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Feb 4 17:53:33 2024 +0800

    Remove useless code on OutputClauseAssert (#29986)
---
 .../internal/asserts/segment/output/OutputClauseAssert.java       | 8 --------
 1 file changed, 8 deletions(-)

diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/output/OutputClauseAssert.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/output/OutputClauseAssert.java
index 96b32ee6728..74a6923abfd 100644
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/output/OutputClauseAssert.java
+++ 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/output/OutputClauseAssert.java
@@ -20,15 +20,12 @@ package 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.ou
 import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
 import 
org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment;
-import 
org.apache.shardingsphere.sql.parser.sql.common.segment.dml.item.ColumnProjectionSegment;
 import 
org.apache.shardingsphere.sql.parser.sql.common.segment.generic.OutputSegment;
 import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.SQLCaseAssertContext;
 import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.SQLSegmentAssert;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.identifier.IdentifierValueAssert;
 import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.projection.ProjectionAssert;
 import 
org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.table.TableAssert;
 import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.output.ExpectedOutputClause;
-import 
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.projection.impl.column.ExpectedColumnProjection;
 
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -61,11 +58,6 @@ public final class OutputClauseAssert {
         SQLSegmentAssert.assertIs(assertContext, actual, expected);
     }
     
-    private static void assertOutputColumnSegment(final SQLCaseAssertContext 
assertContext, final ColumnProjectionSegment actual, final 
ExpectedColumnProjection expected) {
-        IdentifierValueAssert.assertIs(assertContext, 
actual.getColumn().getIdentifier(), expected, "Output column");
-        SQLSegmentAssert.assertIs(assertContext, actual, expected);
-    }
-    
     private static void assertOutputTableSegment(final SQLCaseAssertContext 
assertContext, final OutputSegment actual, final ExpectedOutputClause expected) 
{
         TableAssert.assertIs(assertContext, actual.getTable(), 
expected.getOutputTable());
     }

Reply via email to