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
-
public abstract class BaseConnectorTest extends AbstractTestDistributedQueries
Generic test for connectors.- See Also:
AbstractTestDistributedQueries
-
-
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 Constructor Description BaseConnectorTest()
-
Method Summary
-
Methods inherited from class io.trino.testing.AbstractTestDistributedQueries
assertCreateTableAsSelect, assertCreateTableAsSelect, assertCreateTableAsSelect, createTableWithDefaultColumns, dataMappingTableName, ensureDistributedQueryRunner, filterCaseSensitiveDataMappingTestData, filterColumnNameTestData, filterDataMappingSmokeTestData, isColumnNameRejected, testAddColumn, testCaseSensitiveDataMapping, testCaseSensitiveDataMappingProvider, testColumnName, testColumnNameDataProvider, testCommentColumn, testCommentTable, testCompatibleTypeChangeForView, testCompatibleTypeChangeForView2, testCreateSchema, testCreateTable, testCreateTableAsSelect, testDataMappingSmokeTest, testDataMappingSmokeTestDataProvider, testDelete, testDropColumn, testDropTableIfExists, testInsert, testInsertArray, testInsertForDefaultColumn, testInsertUnicode, testQueryLoggingCount, testRenameColumn, testRenameTable, testShowCreateView, testShowSchemasFromOther, testSymbolAliasing, testViewCaseSensitivity, testViewMetadata, testViewMetadataDataProvider, testWrittenStats
-
Methods 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, testTopNByMultipleFields
-
Methods 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, assertQuerySucceeds, assertQuerySucceeds, assertTableColumnNames, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, close, closeAfterClass, computeActual, computeActual, computeExpected, computeScalar, createQueryRunner, executeExclusively, formatSqlText, getDistributedQueryRunner, getExplainPlan, getGraphvizExplainPlan, getNodeCount, getQueryRunner, getSession, init, noJoinReordering, noJoinReordering, query, query, searchScanFilterAndProjectOperatorStats, skipTestUnless
-
-
-
-
Method Detail
-
supportsCreateSchema
@Deprecated protected final boolean supportsCreateSchema()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCreateSchemain classAbstractTestDistributedQueries
-
supportsCreateTable
@Deprecated protected final boolean supportsCreateTable()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCreateTablein classAbstractTestDistributedQueries
-
supportsInsert
@Deprecated protected final boolean supportsInsert()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsInsertin classAbstractTestDistributedQueries
-
supportsDelete
@Deprecated protected final boolean supportsDelete()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsDeletein classAbstractTestDistributedQueries
-
supportsViews
@Deprecated protected final boolean supportsViews()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsViewsin classAbstractTestDistributedQueries
-
supportsArrays
@Deprecated protected final boolean supportsArrays()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsArraysin classAbstractTestDistributedQueries
-
supportsCommentOnTable
@Deprecated protected final boolean supportsCommentOnTable()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCommentOnTablein classAbstractTestDistributedQueries
-
supportsCommentOnColumn
@Deprecated protected final boolean supportsCommentOnColumn()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsCommentOnColumnin classAbstractTestDistributedQueries
-
supportsRenameTable
@Deprecated protected boolean supportsRenameTable()
Deprecated.UsehasBehavior(TestingConnectorBehavior)instead.- Overrides:
supportsRenameTablein classAbstractTestDistributedQueries
-
hasBehavior
protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
-
ensureTestNamingConvention
public void ensureTestNamingConvention()
- Overrides:
ensureTestNamingConventionin classAbstractTestQueryFramework
-
testColumnsInReverseOrder
public void testColumnsInReverseOrder()
-
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
public void testJoinWithEmptySides(FeaturesConfig.JoinDistributionType joinDistributionType)
Test interactions between optimizer (including CBO), scheduling and connector metadata APIs.
-
joinDistributionTypes
public Object[][] 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()
-
checkInformationSchemaTablesForPointedQueryForMaterializedView
protected void checkInformationSchemaTablesForPointedQueryForMaterializedView(String schemaName, String viewName)
-
checkShowColumnsForMaterializedView
protected void checkShowColumnsForMaterializedView(String schemaName, String viewName)
-
checkInformationSchemaColumnsForMaterializedView
protected void checkInformationSchemaColumnsForMaterializedView(String schemaName, String viewName)
-
checkInformationSchemaColumnsForPointedQueryForMaterializedView
protected void checkInformationSchemaColumnsForPointedQueryForMaterializedView(String schemaName, String viewName)
-
checkInformationSchemaViewsForMaterializedView
protected void checkInformationSchemaViewsForMaterializedView(String schemaName, String viewName)
-
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()
-
testRenameTableAcrossSchema
public void testRenameTableAcrossSchema()
-
-