From eae421e9023d9a9350ff6b590e5eca4d8ca6774d Mon Sep 17 00:00:00 2001 From: krvikash Date: Fri, 11 Nov 2022 19:05:48 +0530 Subject: [PATCH] Execute DROP TABLE statement at end of test case --- .../tests/product/deltalake/BaseTestDeltaLakeHdfsReads.java | 1 + .../tests/product/deltalake/BaseTestDeltaLakeMinioReads.java | 1 + 2 files changed, 2 insertions(+) diff --git a/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeHdfsReads.java b/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeHdfsReads.java index a71fdbfc0e49..5101cbbf9994 100644 --- a/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeHdfsReads.java +++ b/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeHdfsReads.java @@ -76,5 +76,6 @@ public void testReads() "WITH (location = 'hdfs://hadoop-master:9000/tmp/region')"); assertThat(onTrino().executeQuery("SELECT count(*) FROM delta.default.region")).containsOnly(row(5L)); + onTrino().executeQuery("DROP TABLE delta.default.region"); } } diff --git a/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeMinioReads.java b/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeMinioReads.java index 41d7490a2e75..a67f7b5d2b11 100644 --- a/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeMinioReads.java +++ b/testing/trino-product-tests/src/main/java/io/trino/tests/product/deltalake/BaseTestDeltaLakeMinioReads.java @@ -87,5 +87,6 @@ public void testReadRegionTable() assertNotificationsCount(NOTIFICATIONS_TABLE, OBJECT_ACCESSED_HEAD, tableName + "/_delta_log/00000000000000000000.json", 0); assertNotificationsCount(NOTIFICATIONS_TABLE, OBJECT_ACCESSED_GET, tableName + "/_delta_log/00000000000000000000.json", 1); + onTrino().executeQuery(format("DROP TABLE delta.default.\"%s\"", tableName)); } }