diff --git a/testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/TestHiveStorageFormats.java b/testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/TestHiveStorageFormats.java index bdc298207da7..6a17cda895ef 100644 --- a/testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/TestHiveStorageFormats.java +++ b/testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/TestHiveStorageFormats.java @@ -26,6 +26,7 @@ import io.trino.tempto.query.QueryExecutionException; import io.trino.tempto.query.QueryExecutor.QueryParam; import io.trino.tempto.query.QueryResult; +import io.trino.testng.services.Flaky; import io.trino.tests.product.utils.JdbcDriverUtils; import org.apache.parquet.hadoop.ParquetWriter; import org.assertj.core.api.Assertions; @@ -65,6 +66,8 @@ import static io.trino.tests.product.TestGroups.HMS_ONLY; import static io.trino.tests.product.TestGroups.STORAGE_FORMATS; import static io.trino.tests.product.TestGroups.STORAGE_FORMATS_DETAILED; +import static io.trino.tests.product.hive.HiveProductTest.ERROR_COMMITTING_WRITE_TO_HIVE_ISSUE; +import static io.trino.tests.product.hive.HiveProductTest.ERROR_COMMITTING_WRITE_TO_HIVE_MATCH; import static io.trino.tests.product.hive.util.TemporaryHiveTable.randomTableSuffix; import static io.trino.tests.product.utils.JdbcDriverUtils.setSessionProperty; import static io.trino.tests.product.utils.QueryExecutors.onHive; @@ -458,6 +461,7 @@ public void testInsertAndSelectWithNullFormat(StorageFormat storageFormat) } @Test(dataProvider = "storageFormatsWithZeroByteFile", groups = STORAGE_FORMATS_DETAILED) + @Flaky(issue = ERROR_COMMITTING_WRITE_TO_HIVE_ISSUE, match = ERROR_COMMITTING_WRITE_TO_HIVE_MATCH) public void testSelectFromZeroByteFile(StorageFormat storageFormat) { String tableName = format( @@ -478,6 +482,7 @@ public void testSelectFromZeroByteFile(StorageFormat storageFormat) } @Test(dataProvider = "storageFormatsWithNullFormat", groups = STORAGE_FORMATS_DETAILED) + @Flaky(issue = ERROR_COMMITTING_WRITE_TO_HIVE_ISSUE, match = ERROR_COMMITTING_WRITE_TO_HIVE_MATCH) public void testSelectWithNullFormat(StorageFormat storageFormat) { String nullFormat = "null_value"; @@ -635,6 +640,7 @@ private void testNestedFields(String format, Engine writer) } @Test(groups = STORAGE_FORMATS_DETAILED) + @Flaky(issue = ERROR_COMMITTING_WRITE_TO_HIVE_ISSUE, match = ERROR_COMMITTING_WRITE_TO_HIVE_MATCH) public void testOrcStructsWithNonLowercaseFields() throws SQLException { @@ -671,6 +677,7 @@ public void testOrcStructsWithNonLowercaseFields() } @Test(dataProvider = "storageFormatsWithNanosecondPrecision", groups = STORAGE_FORMATS_DETAILED) + @Flaky(issue = ERROR_COMMITTING_WRITE_TO_HIVE_ISSUE, match = ERROR_COMMITTING_WRITE_TO_HIVE_MATCH) public void testTimestampCreatedFromHive(StorageFormat storageFormat) { String tableName = createSimpleTimestampTable("timestamps_from_hive", storageFormat); @@ -704,6 +711,7 @@ public void testTimestampCreatedFromTrino(StorageFormat storageFormat) } @Test(dataProvider = "storageFormatsWithNanosecondPrecision", groups = STORAGE_FORMATS_DETAILED) + @Flaky(issue = ERROR_COMMITTING_WRITE_TO_HIVE_ISSUE, match = ERROR_COMMITTING_WRITE_TO_HIVE_MATCH) public void testStructTimestampsFromHive(StorageFormat format) { String tableName = createStructTimestampTable("hive_struct_timestamp", format);