Package io.trino.tests.product.hive
Class AbstractTestHiveViews
java.lang.Object
io.trino.tempto.ProductTest
io.trino.tests.product.hive.HiveProductTest
io.trino.tests.product.hive.AbstractTestHiveViews
- Direct Known Subclasses:
TestHiveViews,TestHiveViewsLegacy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidassertViewQuery(String query, Consumer<io.trino.tempto.assertions.QueryAssert> assertion) protected io.trino.tempto.query.QueryExecutorconnectToTrino(String catalog) protected abstract List<io.trino.tempto.assertions.QueryAssert.Row>protected voidsetSessionProperty(String key, String value) protected static DatesqlDate(int year, int month, int day) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTest view containing IF, IN, LIKE, BETWEEN, CASE, COALESCE, operators, delimited and non-delimited columns, an inline commentvoidvoidvoidvoidvoidvoidvoidvoidvoidTest a Hive view that spans over Hive and Iceberg table when metastore does not contain an up to date information about table schema, requiring any potential view translation to follow redirections.voidvoidvoidvoidvoidprotected voidMethods inherited from class io.trino.tests.product.hive.HiveProductTest
getHiveVersionMajor, getHiveVersionMinor, getHiveVersionPatch, isHiveWithBrokenAvroTimestamps
-
Constructor Details
-
AbstractTestHiveViews
public AbstractTestHiveViews()
-
-
Method Details
-
testSelectOnView
public void testSelectOnView() -
testArrayIndexingInView
public void testArrayIndexingInView() -
testCommonTableExpression
public void testCommonTableExpression() -
testNestedCommonTableExpression
public void testNestedCommonTableExpression() -
testArrayConstructionInView
public void testArrayConstructionInView() -
testMapConstructionInView
public void testMapConstructionInView() -
testSelectOnViewFromDifferentSchema
public void testSelectOnViewFromDifferentSchema() -
testViewReferencingTableInDifferentSchema
public void testViewReferencingTableInDifferentSchema() -
testViewReferencingTableInTheSameSchemaWithoutQualifier
public void testViewReferencingTableInTheSameSchemaWithoutQualifier() -
testViewWithUnsupportedCoercion
public void testViewWithUnsupportedCoercion() -
testOuterParentheses
public void testOuterParentheses() -
testDateFunction
public void testDateFunction() -
testPmodFunction
public void testPmodFunction() -
testWithUnsupportedFunction
public void testWithUnsupportedFunction() -
testExistingView
public void testExistingView() -
testShowCreateView
public void testShowCreateView() -
testRichSqlSyntax
public void testRichSqlSyntax()Test view containing IF, IN, LIKE, BETWEEN, CASE, COALESCE, operators, delimited and non-delimited columns, an inline comment -
testIdentifierThatStartWithDigit
public void testIdentifierThatStartWithDigit() -
testHiveViewInInformationSchema
public void testHiveViewInInformationSchema() -
testHiveViewWithParametrizedTypes
public void testHiveViewWithParametrizedTypes() -
testHiveViewWithTextualTypes
public void testHiveViewWithTextualTypes() -
getExpectedHiveViewTextualColumnsTypes
protected abstract List<io.trino.tempto.assertions.QueryAssert.Row> getExpectedHiveViewTextualColumnsTypes() -
testNestedHiveViews
public void testNestedHiveViews() -
testSelectFromHiveViewWithoutDefaultCatalogAndSchema
public void testSelectFromHiveViewWithoutDefaultCatalogAndSchema() -
testTimestampHiveView
public void testTimestampHiveView() -
testCurrentUser
public void testCurrentUser() -
testNestedGroupBy
public void testNestedGroupBy() -
testUnionAllViews
public void testUnionAllViews() -
testUnionDistinctViews
public void testUnionDistinctViews() -
testHivePartitionViews
public void testHivePartitionViews() -
testViewReferencingHiveAndIcebergTables
public void testViewReferencingHiveAndIcebergTables()Test a Hive view that spans over Hive and Iceberg table when metastore does not contain an up to date information about table schema, requiring any potential view translation to follow redirections. -
testViewWithColumnAliasesDifferingInCase
public void testViewWithColumnAliasesDifferingInCase() -
testRunAsInvoker
public void testRunAsInvoker() -
assertViewQuery
-
sqlDate
-
connectToTrino
-
setSessionProperty
-
unsetSessionProperty
-