|
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; |
@@ -1983,7 +1984,7 @@ public void testMetadataDeleteOnTableAfterWholeRewriteDataFiles(String version, |
1983 | 1984 | { |
1984 | 1985 | String errorMessage = "This connector only supports delete where one or more partitions are deleted entirely.*"; |
1985 | 1986 | String schemaName = getSession().getSchema().get(); |
1986 | | - String tableName = "test_rewrite_data_files_table"; |
| 1987 | + String tableName = "test_rewrite_data_files_table_" + randomTableSuffix(); |
1987 | 1988 | try { |
1988 | 1989 | // Create a table with partition column `a`, and insert some data under this partition spec |
1989 | 1990 | assertUpdate("CREATE TABLE " + tableName + " (a INTEGER, b VARCHAR) WITH (format_version = '" + version + "', delete_mode = '" + mode + "')"); |
@@ -2013,7 +2014,7 @@ public void testMetadataDeleteOnTableAfterPartialRewriteDataFiles(String version |
2013 | 2014 | { |
2014 | 2015 | String errorMessage = "This connector only supports delete where one or more partitions are deleted entirely.*"; |
2015 | 2016 | String schemaName = getSession().getSchema().get(); |
2016 | | - String tableName = "test_rewrite_data_files_table"; |
| 2017 | + String tableName = "test_rewrite_data_files_table_" + randomTableSuffix(); |
2017 | 2018 | try { |
2018 | 2019 | // Create a table with partition column `a`, and insert some data under this partition spec |
2019 | 2020 | assertUpdate("CREATE TABLE " + tableName + " (a INTEGER, b VARCHAR) WITH (format_version = '" + version + "', delete_mode = '" + mode + "', partitioning = ARRAY['a'])"); |
|
0 commit comments