Class BaseTestHiveCoercion

java.lang.Object
io.trino.tempto.ProductTest
io.trino.tests.product.hive.HiveProductTest
io.trino.tests.product.hive.BaseTestHiveCoercion
Direct Known Subclasses:
TestHiveCoercionOnPartitionedTable, TestHiveCoercionOnUnpartitionedTable

public abstract class BaseTestHiveCoercion extends HiveProductTest
  • Constructor Details

    • BaseTestHiveCoercion

      public BaseTestHiveCoercion()
  • Method Details

    • doTestHiveCoercion

      protected void doTestHiveCoercion(io.trino.tempto.fulfillment.table.hive.HiveTableDefinition tableDefinition)
    • insertTableRows

      protected void insertTableRows(String tableName, String floatToDoubleType)
    • expectedValuesForEngineProvider

      protected Map<String,List<Object>> expectedValuesForEngineProvider(Engine engine, String tableName, String decimalToFloatVal, String floatToDecimalVal)
    • doTestHiveCoercionWithDifferentTimestampPrecision

      protected void doTestHiveCoercionWithDifferentTimestampPrecision(io.trino.tempto.fulfillment.table.hive.HiveTableDefinition tableDefinition)
    • expectedRowsForEngineProvider

      protected Map<String,List<Object>> expectedRowsForEngineProvider(Engine engine, HiveTimestampPrecision timestampPrecision)
    • removeUnsupportedColumnsForHive

      protected List<String> removeUnsupportedColumnsForHive(List<String> columns, String tableName)
    • removeUnsupportedColumnsForTrino

      protected List<String> removeUnsupportedColumnsForTrino(List<String> columns, String tableName)
    • expectedExceptionsWithHiveContext

      protected Map<BaseTestHiveCoercion.ColumnContext,String> expectedExceptionsWithHiveContext()
    • expectedExceptionsWithTrinoContext

      protected Map<BaseTestHiveCoercion.ColumnContext,String> expectedExceptionsWithTrinoContext()
    • mutableTableInstanceOf

      protected static io.trino.tempto.fulfillment.table.TableInstance<?> mutableTableInstanceOf(io.trino.tempto.fulfillment.table.TableDefinition tableDefinition)
    • columnContext

      public static BaseTestHiveCoercion.ColumnContext columnContext(String version, String format, String column)
    • columnContext

      public static BaseTestHiveCoercion.ColumnContext columnContext(String format, String column)