From b5b5a938ffda9a2af26619756aa681794889918a Mon Sep 17 00:00:00 2001 From: chenjian2664 Date: Mon, 25 Mar 2024 15:35:44 +0800 Subject: [PATCH] Drop created test table Drop created test table that in the tests: testAlterTableRenameColumnToLongName and testAlterTableAddLongColumnName. --- .../src/main/java/io/trino/testing/BaseConnectorTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java b/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java index dcf2b58db116..80aca9b0304e 100644 --- a/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java +++ b/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java @@ -3507,6 +3507,8 @@ public void testAlterTableAddLongColumnName() assertThatThrownBy(() -> assertUpdate("ALTER TABLE " + tableName + " ADD COLUMN " + invalidTargetColumnName + " int")) .satisfies(this::verifyColumnNameLengthFailurePermissible); assertQuery("SELECT x FROM " + tableName, "VALUES 123"); + + assertUpdate("DROP TABLE " + tableName); } @Test @@ -3538,6 +3540,8 @@ public void testAlterTableRenameColumnToLongName() assertThatThrownBy(() -> assertUpdate("ALTER TABLE " + tableName + " RENAME COLUMN x TO " + invalidTargetTableName)) .satisfies(this::verifyColumnNameLengthFailurePermissible); assertQuery("SELECT x FROM " + tableName, "VALUES 123"); + + assertUpdate("DROP TABLE " + tableName); } protected boolean columnExists(String tableName, String columnName)