Package io.trino.tests.product.hive
Class TestReadUniontype
java.lang.Object
io.trino.tempto.ProductTest
io.trino.tests.product.hive.HiveProductTest
io.trino.tests.product.hive.TestReadUniontype
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()static Object[][]voidWhen reading AVRO file, Trino needs the schema information from Hive metastore to deserialize Avro files.voidWhen reading AVRO file, Trino needs the schema information from Hive metastore to deserialize Avro files.voidvoidtestReadUniontype(String storageFormat) voidtestReadUniontypeWithDereference(String createTableSql, String insertSql, String selectSql, List<Object> expectedResult, String selectTagSql, List<Object> expectedTagResult, String dropTableSql) voidtestUnionTypeSchemaEvolution(String storageFormat) static Object[][]Methods inherited from class io.trino.tests.product.hive.HiveProductTest
getHiveVersionMajor, getHiveVersionMinor, getHiveVersionPatch, isHiveWithBrokenAvroTimestamps
-
Constructor Details
-
TestReadUniontype
public TestReadUniontype()
-
-
Method Details
-
cleanup
public void cleanup() -
storageFormats
-
unionDereferenceTestCases
-
testReadUniontype
-
testReadUniontypeWithDereference
-
testUnionTypeSchemaEvolution
-
testORCUnionToStructSchemaEvolution
public void testORCUnionToStructSchemaEvolution()When reading AVRO file, Trino needs the schema information from Hive metastore to deserialize Avro files. Therefore, when an ALTER table was issued in which the hive metastore changed the schema into an incompatible format, from Union to Struct or from Struct to Union in this case, Trino could not read those Avro files using the modified Hive metastore schema. However, when reading ORC files, Trino does not need schema information from Hive metastore to deserialize ORC files. Therefore, it can read ORC files even after changing the schema. -
testORCStructToUnionSchemaEvolution
public void testORCStructToUnionSchemaEvolution()When reading AVRO file, Trino needs the schema information from Hive metastore to deserialize Avro files. Therefore, when an ALTER table was issued in which the hive metastore changed the schema into an incompatible format, from Union to Struct or from Struct to Union in this case, Trino could not read those Avro files using the modified Hive metastore schema. However, when reading ORC files, Trino does not need schema information from Hive metastore to deserialize ORC files. Therefore, it can read ORC files even after changing the schema. -
testReadOrcUniontypeWithCheckpoint
public void testReadOrcUniontypeWithCheckpoint()
-