You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2025/06/05 07:45:01 UTC

(shardingsphere) branch master updated: Remove useless parser-sql-statement-firebird (#35591)

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 eea9a30da4a Remove useless parser-sql-statement-firebird (#35591)
eea9a30da4a is described below

commit eea9a30da4a6becee7155810816d29946feea153
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Thu Jun 5 15:44:54 2025 +0800

    Remove useless parser-sql-statement-firebird (#35591)
---
 parser/sql/dialect/firebird/pom.xml                |  5 ---
 .../type/FirebirdDMLStatementVisitor.java          | 22 +++++------
 .../core/statement/dml/DeleteStatement.java        |  4 +-
 .../core/statement/dml/InsertStatement.java        | 12 ++----
 .../core/statement/dml/UpdateStatement.java        | 12 ++----
 parser/sql/statement/type/firebird/pom.xml         | 36 ------------------
 .../statement/firebird/FirebirdStatement.java      | 26 -------------
 .../firebird/dml/FirebirdDeleteStatement.java      | 39 -------------------
 .../firebird/dml/FirebirdInsertStatement.java      | 39 -------------------
 .../firebird/dml/FirebirdSelectStatement.java      | 44 ----------------------
 .../firebird/dml/FirebirdUpdateStatement.java      | 39 -------------------
 parser/sql/statement/type/pom.xml                  |  1 -
 test/it/parser/pom.xml                             |  5 ---
 13 files changed, 20 insertions(+), 264 deletions(-)

diff --git a/parser/sql/dialect/firebird/pom.xml b/parser/sql/dialect/firebird/pom.xml
index 1f8d732b592..78ef988f85c 100644
--- a/parser/sql/dialect/firebird/pom.xml
+++ b/parser/sql/dialect/firebird/pom.xml
@@ -36,10 +36,5 @@
             <artifactId>shardingsphere-infra-database-firebird</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-parser-sql-statement-firebird</artifactId>
-            <version>${project.version}</version>
-        </dependency>
     </dependencies>
 </project>
diff --git a/parser/sql/dialect/firebird/src/main/java/org/apache/shardingsphere/sql/parser/firebird/visitor/statement/type/FirebirdDMLStatementVisitor.java b/parser/sql/dialect/firebird/src/main/java/org/apache/shardingsphere/sql/parser/firebird/visitor/statement/type/FirebirdDMLStatementVisitor.java
index 81d246fe7eb..ebe7396d6c5 100644
--- a/parser/sql/dialect/firebird/src/main/java/org/apache/shardingsphere/sql/parser/firebird/visitor/statement/type/FirebirdDMLStatementVisitor.java
+++ b/parser/sql/dialect/firebird/src/main/java/org/apache/shardingsphere/sql/parser/firebird/visitor/statement/type/FirebirdDMLStatementVisitor.java
@@ -87,14 +87,14 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table
 import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
 import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SubqueryTableSegment;
 import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.TableSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.InsertStatement;
 import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.MergeStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.UpdateStatement;
 import org.apache.shardingsphere.sql.parser.statement.core.value.collection.CollectionValue;
 import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
 import org.apache.shardingsphere.sql.parser.statement.core.value.literal.impl.BooleanLiteralValue;
-import org.apache.shardingsphere.sql.parser.statement.firebird.dml.FirebirdDeleteStatement;
-import org.apache.shardingsphere.sql.parser.statement.firebird.dml.FirebirdInsertStatement;
-import org.apache.shardingsphere.sql.parser.statement.firebird.dml.FirebirdSelectStatement;
-import org.apache.shardingsphere.sql.parser.statement.firebird.dml.FirebirdUpdateStatement;
 
 import java.util.Collection;
 import java.util.Collections;
@@ -109,7 +109,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     
     @Override
     public ASTNode visitInsert(final InsertContext ctx) {
-        FirebirdInsertStatement result = (FirebirdInsertStatement) visit(ctx.insertValuesClause());
+        InsertStatement result = (InsertStatement) visit(ctx.insertValuesClause());
         result.setTable((SimpleTableSegment) visit(ctx.tableName()));
         result.addParameterMarkerSegments(getParameterMarkerSegments());
         if (null != ctx.returningClause()) {
@@ -121,7 +121,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     @SuppressWarnings("unchecked")
     @Override
     public ASTNode visitInsertValuesClause(final InsertValuesClauseContext ctx) {
-        FirebirdInsertStatement result = new FirebirdInsertStatement();
+        InsertStatement result = new InsertStatement();
         if (null != ctx.columnNames()) {
             ColumnNamesContext columnNames = ctx.columnNames();
             CollectionValue<ColumnSegment> columnSegments = (CollectionValue<ColumnSegment>) visit(columnNames);
@@ -148,7 +148,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     
     @Override
     public ASTNode visitUpdate(final UpdateContext ctx) {
-        FirebirdUpdateStatement result = new FirebirdUpdateStatement();
+        UpdateStatement result = new UpdateStatement();
         result.setTable((TableSegment) visit(ctx.tableReferences()));
         result.setSetAssignment((SetAssignmentSegment) visit(ctx.setAssignmentsClause()));
         if (null != ctx.whereClause()) {
@@ -201,7 +201,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     
     @Override
     public ASTNode visitDelete(final DeleteContext ctx) {
-        FirebirdDeleteStatement result = new FirebirdDeleteStatement();
+        DeleteStatement result = new DeleteStatement();
         result.setTable((TableSegment) visit(ctx.singleTableClause()));
         if (null != ctx.whereClause()) {
             result.setWhere((WhereSegment) visit(ctx.whereClause()));
@@ -225,7 +225,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     @Override
     public ASTNode visitSelect(final SelectContext ctx) {
         // TODO :Unsupported for withClause.
-        FirebirdSelectStatement result = (FirebirdSelectStatement) visit(ctx.combineClause());
+        SelectStatement result = (SelectStatement) visit(ctx.combineClause());
         result.addParameterMarkerSegments(getParameterMarkerSegments());
         return result;
     }
@@ -238,7 +238,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     
     @Override
     public ASTNode visitSelectClause(final SelectClauseContext ctx) {
-        FirebirdSelectStatement result = new FirebirdSelectStatement();
+        SelectStatement result = new SelectStatement();
         result.setProjections((ProjectionsSegment) visit(ctx.projections()));
         if (!ctx.selectSpecification().isEmpty()) {
             result.getProjections().setDistinctRow(isDistinct(ctx.selectSpecification().get(0)));
@@ -421,7 +421,7 @@ public final class FirebirdDMLStatementVisitor extends FirebirdStatementVisitor
     @Override
     public ASTNode visitTableFactor(final TableFactorContext ctx) {
         if (null != ctx.subquery()) {
-            FirebirdSelectStatement subquery = (FirebirdSelectStatement) visit(ctx.subquery());
+            SelectStatement subquery = (SelectStatement) visit(ctx.subquery());
             SubquerySegment subquerySegment = new SubquerySegment(ctx.subquery().start.getStartIndex(), ctx.subquery().stop.getStopIndex(), subquery, getOriginalText(ctx.subquery()));
             SubqueryTableSegment result = new SubqueryTableSegment(ctx.start.getStartIndex(), ctx.stop.getStopIndex(), subquerySegment);
             if (null != ctx.alias()) {
diff --git a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/DeleteStatement.java b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/DeleteStatement.java
index 01c14870d31..13f22539588 100644
--- a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/DeleteStatement.java
+++ b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/DeleteStatement.java
@@ -41,6 +41,8 @@ public class DeleteStatement extends AbstractSQLStatement implements DMLStatemen
     
     private WhereSegment where;
     
+    private ReturningSegment returningSegment;
+    
     /**
      * Get where.
      *
@@ -124,6 +126,6 @@ public class DeleteStatement extends AbstractSQLStatement implements DMLStatemen
      * @return returning segment
      */
     public Optional<ReturningSegment> getReturningSegment() {
-        return Optional.empty();
+        return Optional.ofNullable(returningSegment);
     }
 }
diff --git a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/InsertStatement.java b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/InsertStatement.java
index 1e0095f6a20..74b33119ca7 100644
--- a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/InsertStatement.java
+++ b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/InsertStatement.java
@@ -56,6 +56,8 @@ public class InsertStatement extends AbstractSQLStatement implements DMLStatemen
     
     private SubquerySegment insertSelect;
     
+    private ReturningSegment returningSegment;
+    
     private final Collection<InsertValuesSegment> values = new LinkedList<>();
     
     private final Collection<ColumnSegment> derivedInsertColumns = new LinkedList<>();
@@ -221,15 +223,7 @@ public class InsertStatement extends AbstractSQLStatement implements DMLStatemen
      * @return returning segment
      */
     public Optional<ReturningSegment> getReturningSegment() {
-        return Optional.empty();
-    }
-    
-    /**
-     * Set returning segment of insert statement.
-     *
-     * @param returningSegment returning segment
-     */
-    public void setReturningSegment(final ReturningSegment returningSegment) {
+        return Optional.ofNullable(returningSegment);
     }
     
     /**
diff --git a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/UpdateStatement.java b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/UpdateStatement.java
index f74e00a9706..4877e03bb72 100644
--- a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/UpdateStatement.java
+++ b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/dml/UpdateStatement.java
@@ -45,6 +45,8 @@ public class UpdateStatement extends AbstractSQLStatement implements DMLStatemen
     
     private WhereSegment where;
     
+    private ReturningSegment returningSegment;
+    
     /**
      * Get where.
      *
@@ -180,14 +182,6 @@ public class UpdateStatement extends AbstractSQLStatement implements DMLStatemen
      * @return returning segment
      */
     public Optional<ReturningSegment> getReturningSegment() {
-        return Optional.empty();
-    }
-    
-    /**
-     * Set returning segment of update statement.
-     *
-     * @param returningSegment returning segment
-     */
-    public void setReturningSegment(final ReturningSegment returningSegment) {
+        return Optional.ofNullable(returningSegment);
     }
 }
diff --git a/parser/sql/statement/type/firebird/pom.xml b/parser/sql/statement/type/firebird/pom.xml
deleted file mode 100644
index 88795d9b22e..00000000000
--- a/parser/sql/statement/type/firebird/pom.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>org.apache.shardingsphere</groupId>
-        <artifactId>shardingsphere-parser-sql-statement-type</artifactId>
-        <version>5.5.3-SNAPSHOT</version>
-    </parent>
-    <artifactId>shardingsphere-parser-sql-statement-firebird</artifactId>
-    <name>${project.artifactId}</name>
-    
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-parser-sql-statement-core</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-    </dependencies>
-</project>
diff --git a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/FirebirdStatement.java b/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/FirebirdStatement.java
deleted file mode 100644
index ea13347ec92..00000000000
--- a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/FirebirdStatement.java
+++ /dev/null
@@ -1,26 +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.sql.parser.statement.firebird;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
-
-/**
- * Firebird statement.
- */
-public interface FirebirdStatement extends SQLStatement {
-}
diff --git a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdDeleteStatement.java b/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdDeleteStatement.java
deleted file mode 100644
index e62175c0a4a..00000000000
--- a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdDeleteStatement.java
+++ /dev/null
@@ -1,39 +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.sql.parser.statement.firebird.dml;
-
-import lombok.Setter;
-import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.ReturningSegment;
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement;
-import org.apache.shardingsphere.sql.parser.statement.firebird.FirebirdStatement;
-
-import java.util.Optional;
-
-/**
- * Firebird delete statement.
- */
-@Setter
-public final class FirebirdDeleteStatement extends DeleteStatement implements FirebirdStatement {
-    
-    private ReturningSegment returningSegment;
-    
-    @Override
-    public Optional<ReturningSegment> getReturningSegment() {
-        return Optional.ofNullable(returningSegment);
-    }
-}
diff --git a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdInsertStatement.java b/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdInsertStatement.java
deleted file mode 100644
index b899dc92908..00000000000
--- a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdInsertStatement.java
+++ /dev/null
@@ -1,39 +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.sql.parser.statement.firebird.dml;
-
-import lombok.Setter;
-import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.ReturningSegment;
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.InsertStatement;
-import org.apache.shardingsphere.sql.parser.statement.firebird.FirebirdStatement;
-
-import java.util.Optional;
-
-/**
- * Firebird insert statement.
- */
-@Setter
-public final class FirebirdInsertStatement extends InsertStatement implements FirebirdStatement {
-    
-    private ReturningSegment returningSegment;
-    
-    @Override
-    public Optional<ReturningSegment> getReturningSegment() {
-        return Optional.ofNullable(returningSegment);
-    }
-}
diff --git a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdSelectStatement.java b/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdSelectStatement.java
deleted file mode 100644
index 0c582b49419..00000000000
--- a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdSelectStatement.java
+++ /dev/null
@@ -1,44 +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.sql.parser.statement.firebird.dml;
-
-import lombok.Setter;
-import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.pagination.limit.LimitSegment;
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement;
-import org.apache.shardingsphere.sql.parser.statement.firebird.FirebirdStatement;
-
-import java.util.Optional;
-
-/**
- * Firebird select statement.
- */
-@Setter
-public final class FirebirdSelectStatement extends SelectStatement implements FirebirdStatement {
-    
-    private LimitSegment limit;
-    
-    /**
-     * Get order by segment.
-     *
-     * @return order by segment
-     */
-    @Override
-    public Optional<LimitSegment> getLimit() {
-        return Optional.ofNullable(limit);
-    }
-}
diff --git a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdUpdateStatement.java b/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdUpdateStatement.java
deleted file mode 100644
index 927ac1bf5e9..00000000000
--- a/parser/sql/statement/type/firebird/src/main/java/org/apache/shardingsphere/sql/parser/statement/firebird/dml/FirebirdUpdateStatement.java
+++ /dev/null
@@ -1,39 +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.sql.parser.statement.firebird.dml;
-
-import lombok.Setter;
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.UpdateStatement;
-import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.ReturningSegment;
-import org.apache.shardingsphere.sql.parser.statement.firebird.FirebirdStatement;
-
-import java.util.Optional;
-
-/**
- * Firebird update statement.
- */
-@Setter
-public final class FirebirdUpdateStatement extends UpdateStatement implements FirebirdStatement {
-    
-    private ReturningSegment returningSegment;
-    
-    @Override
-    public Optional<ReturningSegment> getReturningSegment() {
-        return Optional.ofNullable(returningSegment);
-    }
-}
diff --git a/parser/sql/statement/type/pom.xml b/parser/sql/statement/type/pom.xml
index 311349d8823..27859c165ca 100644
--- a/parser/sql/statement/type/pom.xml
+++ b/parser/sql/statement/type/pom.xml
@@ -33,7 +33,6 @@
         <module>sqlserver</module>
         <module>oracle</module>
         <module>opengauss</module>
-        <module>firebird</module>
         <module>hive</module>
         <module>presto</module>
     </modules>
diff --git a/test/it/parser/pom.xml b/test/it/parser/pom.xml
index 751f6d4067e..84b658c4ac1 100644
--- a/test/it/parser/pom.xml
+++ b/test/it/parser/pom.xml
@@ -137,11 +137,6 @@
             <artifactId>shardingsphere-parser-sql-statement-opengauss</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-parser-sql-statement-firebird</artifactId>
-            <version>${project.version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
             <artifactId>shardingsphere-parser-sql-statement-hive</artifactId>