Package io.trino.tests.product.iceberg
Class TestIcebergSparkCompatibility
java.lang.Object
io.trino.tempto.ProductTest
io.trino.tests.product.iceberg.TestIcebergSparkCompatibility
public class TestIcebergSparkCompatibility
extends io.trino.tempto.ProductTest
Tests compatibility between Iceberg connector and Spark Iceberg.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup()voidsetUp()static Object[][]static Object[][]Object[][]static Object[][]static Object[][]voidtearDown()voidvoidvoidtestCleaningUpIcebergTableWithRowLevelDeletes(TestIcebergSparkCompatibility.StorageFormat tableStorageFormat, TestIcebergSparkCompatibility.StorageFormat deleteFileStorageFormat) voidtestCreateAndDropTableWithSameLocationFailsOnTrino(int specVersion) voidtestCreateAndDropTableWithSameLocationWorksOnSpark(int specVersion) voidvoidvoidtestIdBasedFieldMapping(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestReadAfterPartitionEvolution(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidvoidvoidvoidvoidvoidvoidstatic Object[][]static Object[][]voidtestSparkAlterColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) voidtestSparkAlterPartitionedColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) voidvoidtestSparkCreatesTrinoDrops(int specVersion) voidvoidvoidvoidvoidtestSparkReadingTrinoCompressedData(TestIcebergSparkCompatibility.StorageFormat storageFormat, String compressionCodec) voidtestSparkReadingTrinoData(TestIcebergSparkCompatibility.StorageFormat storageFormat, TestIcebergSparkCompatibility.CreateMode createMode) Object[][]voidvoidvoidtestSparkReadsTrinoRowLevelDeletesWithRowTypes(TestIcebergSparkCompatibility.StorageFormat storageFormat) voidvoidtestSparkReadsTrinoTableAfterOptimizeAndCleaningUp(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestTrinoReadingCompositeSparkData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidvoidtestTrinoReadingNestedSparkData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidtestTrinoReadingSparkCompressedData(TestIcebergSparkCompatibility.StorageFormat storageFormat, String compressionCodec) voidtestTrinoReadingSparkData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidtestTrinoReadingSparkIcebergTablePropertiesData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidtestTrinoReadsSparkPartitionedTable(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidtestTrinoReadsSparkRowLevelDeletes(TestIcebergSparkCompatibility.StorageFormat tableStorageFormat, TestIcebergSparkCompatibility.StorageFormat deleteFileStorageFormat) voidtestTrinoReadsSparkRowLevelDeletesWithRowTypes(TestIcebergSparkCompatibility.StorageFormat tableStorageFormat, TestIcebergSparkCompatibility.StorageFormat deleteFileStorageFormat) voidtestTrinoReadsTrinoTableWithSparkDeletesAfterOptimizeAndCleanUp(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidtestTrinoSetColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) voidtestTrinoSetPartitionedColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) voidtestTrinoShowingSparkCreatedTables(int specVersion) voidvoidtestTrinoWritingDataWithObjectStorageLocationProvider(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidtestTrinoWritingDataWithWriterDataPathSet(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) voidvoidvoidvoid
-
Constructor Details
-
TestIcebergSparkCompatibility
public TestIcebergSparkCompatibility()
-
-
Method Details
-
setup
public void setup() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
tearDown
public void tearDown() -
setUp
public void setUp() -
testTrinoReadingSparkData
public void testTrinoReadingSparkData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testSparkReadingTrinoData
public void testSparkReadingTrinoData(TestIcebergSparkCompatibility.StorageFormat storageFormat, TestIcebergSparkCompatibility.CreateMode createMode) -
testSparkReadingTrinoDataDataProvider
-
testSparkReadTrinoUuid
-
testSparkCreatesTrinoDrops
public void testSparkCreatesTrinoDrops(int specVersion) -
testTrinoCreatesSparkDrops
public void testTrinoCreatesSparkDrops() -
testSparkReadsTrinoPartitionedTable
public void testSparkReadsTrinoPartitionedTable(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testTrinoReadsSparkPartitionedTable
public void testTrinoReadsSparkPartitionedTable(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testTrinoPartitionedByRealWithNaN
public void testTrinoPartitionedByRealWithNaN(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testTrinoPartitionedByDoubleWithNaN
public void testTrinoPartitionedByDoubleWithNaN(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testSparkPartitionedByRealWithNaN
public void testSparkPartitionedByRealWithNaN(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testSparkPartitionedByDoubleWithNaN
public void testSparkPartitionedByDoubleWithNaN(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testPartitionedByNestedField
public void testPartitionedByNestedField() -
testTrinoReadingCompositeSparkData
public void testTrinoReadingCompositeSparkData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testSparkReadingCompositeTrinoData
public void testSparkReadingCompositeTrinoData(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testTrinoReadingSparkIcebergTablePropertiesData
public void testTrinoReadingSparkIcebergTablePropertiesData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testTrinoReadingNestedSparkData
public void testTrinoReadingNestedSparkData(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testSparkReadingNestedTrinoData
public void testSparkReadingNestedTrinoData(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testIdBasedFieldMapping
public void testIdBasedFieldMapping(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testReadAfterPartitionEvolution
public void testReadAfterPartitionEvolution(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testTrinoShowingSparkCreatedTables
public void testTrinoShowingSparkCreatedTables(int specVersion) -
testCreateAndDropTableWithSameLocationWorksOnSpark
public void testCreateAndDropTableWithSameLocationWorksOnSpark(int specVersion) -
testCreateAndDropTableWithSameLocationFailsOnTrino
public void testCreateAndDropTableWithSameLocationFailsOnTrino(int specVersion) -
testTrinoWritingDataWithObjectStorageLocationProvider
public void testTrinoWritingDataWithObjectStorageLocationProvider(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testTrinoWritingDataWithWriterDataPathSet
public void testTrinoWritingDataWithWriterDataPathSet(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testStringPartitioningWithSpecialCharactersCtasInTrino
public void testStringPartitioningWithSpecialCharactersCtasInTrino() -
testStringPartitioningWithSpecialCharactersInsertInTrino
public void testStringPartitioningWithSpecialCharactersInsertInTrino() -
testStringPartitioningWithSpecialCharactersInsertInSpark
public void testStringPartitioningWithSpecialCharactersInsertInSpark() -
testPartitioningWithMixedCaseColumnUnsupportedInTrino
public void testPartitioningWithMixedCaseColumnUnsupportedInTrino() -
testInsertReadingFromParquetTableWithNestedRowFieldNotPresentInDataFile
public void testInsertReadingFromParquetTableWithNestedRowFieldNotPresentInDataFile() -
testTrinoSparkConcurrentInsert
- Throws:
Exception- See Also:
-
testTrinoReadingSparkCompressedData
public void testTrinoReadingSparkCompressedData(TestIcebergSparkCompatibility.StorageFormat storageFormat, String compressionCodec) -
testSparkReadingTrinoCompressedData
public void testSparkReadingTrinoCompressedData(TestIcebergSparkCompatibility.StorageFormat storageFormat, String compressionCodec) -
verifyCompressionCodecsDataProvider
public void verifyCompressionCodecsDataProvider() -
storageFormatsAndCompressionCodecs
-
testTrinoReadingMigratedNestedData
public void testTrinoReadingMigratedNestedData(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testMigratedDataWithAlteredSchema
public void testMigratedDataWithAlteredSchema(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testMigratedDataWithPartialNameMapping
public void testMigratedDataWithPartialNameMapping(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testPartialStats
public void testPartialStats() -
testStatsAfterAddingPartitionField
public void testStatsAfterAddingPartitionField() -
testTrinoReadsSparkRowLevelDeletes
public void testTrinoReadsSparkRowLevelDeletes(TestIcebergSparkCompatibility.StorageFormat tableStorageFormat, TestIcebergSparkCompatibility.StorageFormat deleteFileStorageFormat) -
testTrinoReadsSparkRowLevelDeletesWithRowTypes
public void testTrinoReadsSparkRowLevelDeletesWithRowTypes(TestIcebergSparkCompatibility.StorageFormat tableStorageFormat, TestIcebergSparkCompatibility.StorageFormat deleteFileStorageFormat) -
testSparkReadsTrinoRowLevelDeletes
public void testSparkReadsTrinoRowLevelDeletes(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testSparkReadsTrinoRowLevelDeletesWithRowTypes
public void testSparkReadsTrinoRowLevelDeletesWithRowTypes(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testDeleteAfterPartitionEvolution
public void testDeleteAfterPartitionEvolution(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testMissingMetrics
public void testMissingMetrics() -
testOptimizeOnV2IcebergTable
public void testOptimizeOnV2IcebergTable() -
testAlterTableExecuteProceduresOnEmptyTable
public void testAlterTableExecuteProceduresOnEmptyTable() -
specVersions
-
storageFormats
-
tableFormatWithDeleteFormat
-
storageFormatsWithSpecVersion
-
testSparkReadsTrinoTableAfterCleaningUp
public void testSparkReadsTrinoTableAfterCleaningUp(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testSparkReadsTrinoTableAfterOptimizeAndCleaningUp
public void testSparkReadsTrinoTableAfterOptimizeAndCleaningUp(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testTrinoReadsTrinoTableWithSparkDeletesAfterOptimizeAndCleanUp
public void testTrinoReadsTrinoTableWithSparkDeletesAfterOptimizeAndCleanUp(TestIcebergSparkCompatibility.StorageFormat storageFormat, int specVersion) -
testCleaningUpIcebergTableWithRowLevelDeletes
public void testCleaningUpIcebergTableWithRowLevelDeletes(TestIcebergSparkCompatibility.StorageFormat tableStorageFormat, TestIcebergSparkCompatibility.StorageFormat deleteFileStorageFormat) -
testUpdateAfterSchemaEvolution
public void testUpdateAfterSchemaEvolution() -
testUpdateOnPartitionColumn
public void testUpdateOnPartitionColumn() -
testAddNotNullColumn
public void testAddNotNullColumn() -
testHandlingPartitionSchemaEvolutionInPartitionMetadata
public void testHandlingPartitionSchemaEvolutionInPartitionMetadata() -
testMetadataCompressionCodecGzip
public void testMetadataCompressionCodecGzip() -
testTrinoAnalyze
public void testTrinoAnalyze() -
testTrinoAnalyzeWithNonLowercaseColumnName
public void testTrinoAnalyzeWithNonLowercaseColumnName() -
testRegisterTableWithTableLocation
public void testRegisterTableWithTableLocation(TestIcebergSparkCompatibility.StorageFormat storageFormat) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
testRegisterTableWithComments
public void testRegisterTableWithComments(TestIcebergSparkCompatibility.StorageFormat storageFormat) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
testRegisterTableWithShowCreateTable
public void testRegisterTableWithShowCreateTable(TestIcebergSparkCompatibility.StorageFormat storageFormat) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
testRegisterTableWithReInsert
public void testRegisterTableWithReInsert(TestIcebergSparkCompatibility.StorageFormat storageFormat) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
testRegisterTableWithDroppedTable
public void testRegisterTableWithDroppedTable(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testRegisterTableWithDifferentTableName
public void testRegisterTableWithDifferentTableName(TestIcebergSparkCompatibility.StorageFormat storageFormat) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
testRegisterTableWithMetadataFile
public void testRegisterTableWithMetadataFile(TestIcebergSparkCompatibility.StorageFormat storageFormat) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
testUnregisterNotIcebergTable
public void testUnregisterNotIcebergTable() -
testTrinoSetColumnType
public void testTrinoSetColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) -
testTrinoSetPartitionedColumnType
public void testTrinoSetPartitionedColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) -
testSetColumnTypeDataProvider
-
testTrinoAlterStructColumnType
public void testTrinoAlterStructColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat) -
testSparkAlterColumnType
public void testSparkAlterColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) -
testSparkAlterPartitionedColumnType
public void testSparkAlterPartitionedColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat, String sourceColumnType, String sourceValueLiteral, String newColumnType, Object newValue) -
testSparkAlterColumnType
-
testSparkAlterStructColumnType
public void testSparkAlterStructColumnType(TestIcebergSparkCompatibility.StorageFormat storageFormat)
-