|
73 | 73 | import static com.facebook.presto.iceberg.procedure.RegisterTableProcedure.getFileSystem; |
74 | 74 | import static com.facebook.presto.iceberg.procedure.RegisterTableProcedure.resolveLatestMetadataLocation; |
75 | 75 | import static com.facebook.presto.testing.MaterializedResult.resultBuilder; |
| 76 | +import static com.facebook.presto.tests.sql.TestTable.randomTableSuffix; |
76 | 77 | import static com.google.common.base.Preconditions.checkArgument; |
77 | 78 | import static com.google.common.collect.Iterables.getOnlyElement; |
78 | 79 | import static java.lang.String.format; |
@@ -2018,7 +2019,7 @@ public void testMetadataDeleteOnTableAfterWholeRewriteDataFiles(String version, |
2018 | 2019 | { |
2019 | 2020 | String errorMessage = "This connector only supports delete where one or more partitions are deleted entirely.*"; |
2020 | 2021 | String schemaName = getSession().getSchema().get(); |
2021 | | - String tableName = "test_rewrite_data_files_table"; |
| 2022 | + String tableName = "test_rewrite_data_files_table_" + randomTableSuffix(); |
2022 | 2023 | try { |
2023 | 2024 | // Create a table with partition column `a`, and insert some data under this partition spec |
2024 | 2025 | assertUpdate("CREATE TABLE " + tableName + " (a INTEGER, b VARCHAR) WITH (format_version = '" + version + "', delete_mode = '" + mode + "')"); |
@@ -2048,7 +2049,7 @@ public void testMetadataDeleteOnTableAfterPartialRewriteDataFiles(String version |
2048 | 2049 | { |
2049 | 2050 | String errorMessage = "This connector only supports delete where one or more partitions are deleted entirely.*"; |
2050 | 2051 | String schemaName = getSession().getSchema().get(); |
2051 | | - String tableName = "test_rewrite_data_files_table"; |
| 2052 | + String tableName = "test_rewrite_data_files_table_" + randomTableSuffix(); |
2052 | 2053 | try { |
2053 | 2054 | // Create a table with partition column `a`, and insert some data under this partition spec |
2054 | 2055 | assertUpdate("CREATE TABLE " + tableName + " (a INTEGER, b VARCHAR) WITH (format_version = '" + version + "', delete_mode = '" + mode + "', partitioning = ARRAY['a'])"); |
|
0 commit comments