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/11/23 05:04:06 UTC

(shardingsphere) branch master updated: Remove useless @SuppressWarnings on HiveDDLStatementVisitor (#37164)

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 c1548464e2d Remove useless @SuppressWarnings on HiveDDLStatementVisitor (#37164)
c1548464e2d is described below

commit c1548464e2da146eceb3769f637251e8fc60c859
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Nov 23 13:04:01 2025 +0800

    Remove useless @SuppressWarnings on HiveDDLStatementVisitor (#37164)
---
 .../engine/hive/visitor/statement/type/HiveDDLStatementVisitor.java     | 2 --
 .../operation/showprocesslist/src/test/resources/env/e2e-env.properties | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/parser/sql/engine/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/engine/hive/visitor/statement/type/HiveDDLStatementVisitor.java b/parser/sql/engine/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/engine/hive/visitor/statement/type/HiveDDLStatementVisitor.java
index 5c1c33f033e..8016bf27f19 100644
--- a/parser/sql/engine/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/engine/hive/visitor/statement/type/HiveDDLStatementVisitor.java
+++ b/parser/sql/engine/dialect/hive/src/main/java/org/apache/shardingsphere/sql/parser/engine/hive/visitor/statement/type/HiveDDLStatementVisitor.java
@@ -162,7 +162,6 @@ public final class HiveDDLStatementVisitor extends HiveStatementVisitor implemen
         return result;
     }
     
-    @SuppressWarnings("unchecked")
     @Override
     public ASTNode visitDropTable(final DropTableContext ctx) {
         DropTableStatement result = new DropTableStatement(getDatabaseType());
@@ -171,7 +170,6 @@ public final class HiveDDLStatementVisitor extends HiveStatementVisitor implemen
         return result;
     }
     
-    @SuppressWarnings("unchecked")
     @Override
     public ASTNode visitTruncateTable(final TruncateTableContext ctx) {
         return new TruncateStatement(getDatabaseType(), Collections.singleton((SimpleTableSegment) visit(ctx.tableNameWithDb())));
diff --git a/test/e2e/operation/showprocesslist/src/test/resources/env/e2e-env.properties b/test/e2e/operation/showprocesslist/src/test/resources/env/e2e-env.properties
index dcadc997ec4..6b44a08fdd8 100644
--- a/test/e2e/operation/showprocesslist/src/test/resources/env/e2e-env.properties
+++ b/test/e2e/operation/showprocesslist/src/test/resources/env/e2e-env.properties
@@ -1,4 +1,4 @@
-\#
+#
 # 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.