From 38f2b1ec00be342a585e61134e2404231559127b Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Fri, 24 May 2024 15:32:02 +0200 Subject: [PATCH] Revert "Avoid flakiness in test when dropping table" This reverts commit b061560d7c7b7b306e1dab06bb625f0c8e5173e9. Since we know that CREATE TABLE succeeded the table exists when we drop it. --- .../java/io/trino/plugin/redshift/TestRedshiftTypeMapping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftTypeMapping.java b/plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftTypeMapping.java index 1fdfbd44d94d6..7824e959967d8 100644 --- a/plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftTypeMapping.java +++ b/plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftTypeMapping.java @@ -831,7 +831,7 @@ private void runTestCases(String tableName, List testCases) .collect(joining("), (", "VALUES (", ")"))); } finally { - getTrinoExecutor().execute("DROP TABLE IF EXISTS " + tableName); + getTrinoExecutor().execute("DROP TABLE " + tableName); } }