Package io.trino.testing
Class BaseConnectorSmokeTest
java.lang.Object
io.trino.testing.AbstractTestQueryFramework
io.trino.testing.BaseConnectorSmokeTest
A connector smoke test exercising various connector functionalities without going in depth on any of them.
A connector should implement
BaseConnectorTest and use this class to exercise some configuration variants.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateSchemaSql(String schemaName) voidEnsure the tests are run withDistributedQueryRunnerwith multiple workers.voidprotected StringexpectedValues(String values) protected StringgetColumnComment(String tableName, String columnName) protected Stringprotected StringgetTableComment(String tableName) protected booleanhasBehavior(TestingConnectorBehavior connectorBehavior) Make sure to group related behaviours together in the order and grouping they are declared inTestingConnectorBehavior.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestJoin()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidThis seemingly duplicate test ofBaseConnectorTest.testShowInformationSchemaTables()is used in the context of this class in order to be able to test against a wider range of connector configurations.voidtestTopN()voidvoidvoidtestView()voidvoidvoidvoidMethods inherited from class io.trino.testing.AbstractTestQueryFramework
assertAccessAllowed, assertAccessAllowed, assertAccessDenied, assertAccessDenied, assertExplain, assertExplain, assertExplainAnalyze, assertExplainAnalyze, assertFunctionNotFound, assertNoDataRead, 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, getExplainPlan, getGraphvizExplainPlan, getNodeCount, getQualifiedTableName, getQueryRunner, getSession, init, inTransaction, newTransaction, noJoinReordering, noJoinReordering, query, query, searchScanFilterAndProjectOperatorStats
-
Field Details
-
REQUIRED_TPCH_TABLES
-
-
Constructor Details
-
BaseConnectorSmokeTest
public BaseConnectorSmokeTest()
-
-
Method Details
-
hasBehavior
Make sure to group related behaviours together in the order and grouping they are declared inTestingConnectorBehavior. -
createSchemaSql
-
ensureDistributedQueryRunner
@Test public void ensureDistributedQueryRunner()Ensure the tests are run withDistributedQueryRunnerwith multiple workers. -
ensureTestNamingConvention
@Test public void ensureTestNamingConvention()- Overrides:
ensureTestNamingConventionin classAbstractTestQueryFramework
-
testSelect
@Test public void testSelect() -
testPredicate
@Test public void testPredicate() -
testLimit
@Test public void testLimit() -
testTopN
@Test public void testTopN() -
testAggregation
@Test public void testAggregation() -
testHaving
@Test public void testHaving() -
testJoin
@Test public void testJoin() -
testCreateTable
@Test public void testCreateTable() -
getCreateTableDefaultDefinition
-
expectedValues
-
testCreateTableAsSelect
@Test public void testCreateTableAsSelect() -
testInsert
@Test public void testInsert() -
verifySupportsDeleteDeclaration
@Test public void verifySupportsDeleteDeclaration() -
verifySupportsRowLevelDeleteDeclaration
@Test public void verifySupportsRowLevelDeleteDeclaration() -
verifySupportsUpdateDeclaration
@Test public void verifySupportsUpdateDeclaration() -
verifySupportsRowLevelUpdateDeclaration
@Test public void verifySupportsRowLevelUpdateDeclaration() -
testUpdate
@Test public void testUpdate() -
testDeleteAllDataFromTable
@Test public void testDeleteAllDataFromTable() -
testRowLevelDelete
@Test public void testRowLevelDelete() -
testTruncateTable
@Test public void testTruncateTable() -
testRowLevelUpdate
@Test public void testRowLevelUpdate() -
testMerge
@Test public void testMerge() -
testCreateSchema
@Test public void testCreateSchema() -
testCreateSchemaWithNonLowercaseOwnerName
@Test public void testCreateSchemaWithNonLowercaseOwnerName() -
testRenameSchema
@Test public void testRenameSchema() -
testRenameTable
- Throws:
Exception
-
testRenameTableAcrossSchemas
- Throws:
Exception
-
testShowInformationSchemaTables
@Test public void testShowInformationSchemaTables()This seemingly duplicate test ofBaseConnectorTest.testShowInformationSchemaTables()is used in the context of this class in order to be able to test against a wider range of connector configurations. -
testSelectInformationSchemaTables
@Test public void testSelectInformationSchemaTables() -
testSelectInformationSchemaColumns
@Test public void testSelectInformationSchemaColumns() -
testShowCreateTable
@Test public void testShowCreateTable() -
testView
@Test public void testView() -
testMaterializedView
@Test public void testMaterializedView() -
testCommentView
@Test public void testCommentView() -
testCommentViewColumn
@Test public void testCommentViewColumn() -
testCommentMaterializedViewColumn
@Test public void testCommentMaterializedViewColumn() -
getTableComment
-
getColumnComment
-