Package io.trino.testing
Class BaseConnectorTest
java.lang.Object
io.trino.testing.AbstractTestQueryFramework
io.trino.testing.AbstractTestQueries
io.trino.testing.AbstractTestDistributedQueries
io.trino.testing.BaseConnectorTest
Generic test for connectors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.trino.testing.AbstractTestDistributedQueries
AbstractTestDistributedQueries.DataMappingTestSetup -
Field Summary
Fields inherited from class io.trino.testing.AbstractTestQueries
CUSTOM_FUNCTIONS, REQUIRED_TPCH_TABLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassertPartialLimitWithPreSortedInputsCount(Session session, int expectedCount) protected voidassertWriteNotAllowedInTransaction(TestingConnectorBehavior behavior, String sql) protected voidcheckInformationSchemaViewsForMaterializedView(String schemaName, String viewName) voidprotected StringerrorMessageForInsertIntoNotNullColumn(String columnName) protected booleanhasBehavior(TestingConnectorBehavior connectorBehavior) Object[][]protected final booleanDeprecated.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.protected final booleanDeprecated.UsehasBehavior(TestingConnectorBehavior)instead.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestJoin()Test interactions between optimizer (including CBO) and connector metadata APIs.voidtestJoinWithEmptySides(FeaturesConfig.JoinDistributionType joinDistributionType) Test interactions between optimizer (including CBO), scheduling and connector metadata APIs.voidvoidvoidtestMaterializedViewColumnName(String columnName) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestView()voidvoidprotected voidvoidvoidMethods inherited from class io.trino.testing.AbstractTestDistributedQueries
assertCreateTableAsSelect, assertCreateTableAsSelect, assertCreateTableAsSelect, createTableWithDefaultColumns, dataMappingTableName, ensureDistributedQueryRunner, filterCaseSensitiveDataMappingTestData, filterColumnNameTestData, filterDataMappingSmokeTestData, isColumnNameRejected, requiresDelimiting, skipTestUnlessSupportsDeletes, testCaseSensitiveDataMapping, testCaseSensitiveDataMappingProvider, testColumnName, testColumnNameDataProvider, testCommentColumn, testCommentTable, testCompatibleTypeChangeForView, testCompatibleTypeChangeForView2, testCreateSchema, testCreateTable, testCreateTableAsSelect, testCreateTableAsSelectWithUnicode, testDataMappingSmokeTest, testDataMappingSmokeTestDataProvider, testDelete, testDeleteWithComplexPredicate, testDeleteWithSemiJoin, testDeleteWithSubquery, testDeleteWithVarcharPredicate, testDropNonEmptySchema, testDropTableIfExists, testExplainAnalyzeWithDeleteWithSubquery, testInsert, testInsertArray, testInsertForDefaultColumn, testInsertHighestUnicodeCharacter, testInsertUnicode, testQueryLoggingCount, testRenameTable, testShowCreateSchema, testShowCreateView, testShowSchemasFromOther, testSymbolAliasing, testViewCaseSensitivity, testViewMetadata, testViewMetadataDataProvider, testWrittenStatsMethods inherited from class io.trino.testing.AbstractTestQueries
largeInValuesCount, largeInValuesCountData, testAggregationOverUnknown, testArithmeticNegation, testComplexQuery, testCountAll, testCountColumn, testDistinct, testDistinctHaving, testDistinctLimit, testDistinctMultipleFields, testDistinctWithOrderBy, testFilterPushdownWithAggregation, testIn, testInformationSchemaFiltering, testInformationSchemaUppercaseName, testLargeIn, testLimit, testLimitInInlineView, testLimitMax, testLimitWithAggregation, testPredicate, testRepeatedAggregations, testSelectWithComparison, testShowColumns, testShowSchemas, testShowSchemasFrom, testShowSchemasLike, testShowSchemasLikeWithEscape, testShowTables, testShowTablesLike, testTableSampleBernoulli, testTableSampleBernoulliBoundaryValues, testTopN, testTopNByMultipleFieldsMethods inherited from class io.trino.testing.AbstractTestQueryFramework
assertAccessAllowed, assertAccessAllowed, assertAccessDenied, assertAccessDenied, assertExplain, assertExplain, assertExplainAnalyze, assertExplainAnalyze, assertQuery, assertQuery, assertQuery, assertQuery, assertQuery, assertQuery, assertQueryEventually, assertQueryFails, assertQueryFails, assertQueryFailsEventually, assertQueryOrdered, assertQueryOrdered, assertQueryOrdered, assertQueryOrdered, assertQueryReturnsEmptyResult, assertQueryReturnsEmptyResult, assertQueryStats, assertQuerySucceeds, assertQuerySucceeds, assertTableColumnNames, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, close, closeAfterClass, computeActual, computeActual, computeExpected, computeScalar, computeScalar, createQueryRunner, executeExclusively, formatSqlText, getDistributedQueryRunner, getDynamicFilteringStats, getExplainPlan, getGraphvizExplainPlan, getNodeCount, getQualifiedTableName, getQueryRunner, getSession, init, inTransaction, newTransaction, noJoinReordering, noJoinReordering, query, query, searchScanFilterAndProjectOperatorStats, skipTestUnless
-
Constructor Details
-
BaseConnectorTest
public BaseConnectorTest()
-
-
Method Details
-
supportsCreateSchema
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCreateSchemain classAbstractTestDistributedQueries
-
supportsCreateTable
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCreateTablein classAbstractTestDistributedQueries
-
supportsInsert
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsInsertin classAbstractTestDistributedQueries
-
supportsDelete
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsDeletein classAbstractTestDistributedQueries
-
supportsViews
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsViewsin classAbstractTestDistributedQueries
-
supportsArrays
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsArraysin classAbstractTestDistributedQueries
-
supportsCommentOnTable
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCommentOnTablein classAbstractTestDistributedQueries
-
supportsCommentOnColumn
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCommentOnColumnin classAbstractTestDistributedQueries
-
supportsRenameTable
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsRenameTablein classAbstractTestDistributedQueries
-
hasBehavior
-
ensureTestNamingConvention
public void ensureTestNamingConvention()- Overrides:
ensureTestNamingConventionin classAbstractTestQueryFramework
-
testColumnsInReverseOrder
public void testColumnsInReverseOrder() -
testCharVarcharComparison
public void testCharVarcharComparison() -
testVarcharCharComparison
public void testVarcharCharComparison() -
testAggregation
public void testAggregation() -
testExactPredicate
public void testExactPredicate() -
testInListPredicate
public void testInListPredicate() -
testIsNullPredicate
public void testIsNullPredicate() -
testLikePredicate
public void testLikePredicate() -
testMultipleRangesPredicate
public void testMultipleRangesPredicate() -
testRangePredicate
public void testRangePredicate() -
testPredicateReflectedInExplain
public void testPredicateReflectedInExplain() -
testSortItemsReflectedInExplain
public void testSortItemsReflectedInExplain() -
testConcurrentScans
public void testConcurrentScans() -
testSelectAll
public void testSelectAll() -
testJoinWithEmptySides
Test interactions between optimizer (including CBO), scheduling and connector metadata APIs. -
joinDistributionTypes
-
testJoin
public void testJoin()Test interactions between optimizer (including CBO) and connector metadata APIs. -
testDescribeTable
public void testDescribeTable() -
testView
public void testView()- Overrides:
testViewin classAbstractTestDistributedQueries
-
testMaterializedView
public void testMaterializedView() -
testRenameMaterializedView
public void testRenameMaterializedView() -
testViewAndMaterializedViewTogether
public void testViewAndMaterializedViewTogether() -
checkInformationSchemaViewsForMaterializedView
-
testExplainAnalyze
public void testExplainAnalyze() -
testExplainAnalyzeVerbose
public void testExplainAnalyzeVerbose() -
testTableSampleSystem
public void testTableSampleSystem() -
testTableSampleWithFiltering
public void testTableSampleWithFiltering() -
testShowCreateTable
public void testShowCreateTable() -
testSelectInformationSchemaTables
public void testSelectInformationSchemaTables() -
testSelectInformationSchemaColumns
public void testSelectInformationSchemaColumns() -
testShowCreateInformationSchema
public void testShowCreateInformationSchema() -
testShowCreateInformationSchemaTable
public void testShowCreateInformationSchemaTable() -
testRollback
public void testRollback() -
testWriteNotAllowedInTransaction
public void testWriteNotAllowedInTransaction() -
assertWriteNotAllowedInTransaction
-
testRenameSchema
public void testRenameSchema() -
testRenameTableAcrossSchema
public void testRenameTableAcrossSchema() -
testAddColumn
public void testAddColumn()- Overrides:
testAddColumnin classAbstractTestDistributedQueries
-
testDropColumn
public void testDropColumn()- Overrides:
testDropColumnin classAbstractTestDistributedQueries
-
testRenameColumn
public void testRenameColumn()- Overrides:
testRenameColumnin classAbstractTestDistributedQueries
-
testInsertIntoNotNullColumn
public void testInsertIntoNotNullColumn() -
errorMessageForInsertIntoNotNullColumn
-
verifySupportsDeleteDeclaration
public void verifySupportsDeleteDeclaration() -
verifySupportsRowLevelDeleteDeclaration
public void verifySupportsRowLevelDeleteDeclaration() -
testDeleteAllDataFromTable
public void testDeleteAllDataFromTable() -
testRowLevelDelete
public void testRowLevelDelete() -
testUpdate
public void testUpdate() -
testUpdateRowConcurrently
- Throws:
Exception
-
verifyConcurrentUpdateFailurePermissible
-
testTruncateTable
public void testTruncateTable() -
testMaterializedViewColumnName
-
assertPartialLimitWithPreSortedInputsCount
-
hasBehavior(TestingConnectorBehavior)instead.