Package io.trino.testing
Class BaseConnectorSmokeTest
- java.lang.Object
-
- io.trino.testing.AbstractTestQueryFramework
-
- io.trino.testing.BaseConnectorSmokeTest
-
public abstract class BaseConnectorSmokeTest extends AbstractTestQueryFramework
A connector smoke test exercising various connector functionalities without going in depth on any of them. A connector should implementBaseConnectorTestand use this class to exercise some configuration variants.
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<io.trino.tpch.TpchTable<?>>REQUIRED_TPCH_TABLES
-
Constructor Summary
Constructors Constructor Description BaseConnectorSmokeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateSchemaSql(String schemaName)voidensureDistributedQueryRunner()Ensure the tests are run withDistributedQueryRunner.voidensureTestNamingConvention()protected booleanhasBehavior(TestingConnectorBehavior connectorBehavior)voidtestAggregation()voidtestCreateSchema()voidtestCreateTable()voidtestCreateTableAsSelect()voidtestDeleteAllDataFromTable()voidtestHaving()voidtestInsert()voidtestJoin()voidtestLimit()voidtestMaterializedView()voidtestPredicate()voidtestRenameSchema()voidtestRenameTable()voidtestRenameTableAcrossSchemas()voidtestRowLevelDelete()voidtestSelect()voidtestSelectInformationSchemaColumns()voidtestSelectInformationSchemaTables()voidtestShowCreateTable()voidtestTopN()voidtestUpdate()voidtestView()voidverifySupportsDeleteDeclaration()voidverifySupportsRowLevelDeleteDeclaration()-
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, 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
-
-
-
-
Field Detail
-
REQUIRED_TPCH_TABLES
protected static final List<io.trino.tpch.TpchTable<?>> REQUIRED_TPCH_TABLES
-
-
Method Detail
-
hasBehavior
protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
-
ensureDistributedQueryRunner
public void ensureDistributedQueryRunner()
Ensure the tests are run withDistributedQueryRunner. E.g.LocalQueryRunnertakes some shortcuts, not exercising certain aspects.
-
ensureTestNamingConvention
public void ensureTestNamingConvention()
- Overrides:
ensureTestNamingConventionin classAbstractTestQueryFramework
-
testSelect
public void testSelect()
-
testPredicate
public void testPredicate()
-
testLimit
public void testLimit()
-
testTopN
public void testTopN()
-
testAggregation
public void testAggregation()
-
testHaving
public void testHaving()
-
testJoin
public void testJoin()
-
testCreateTable
public void testCreateTable()
-
testCreateTableAsSelect
public void testCreateTableAsSelect()
-
testInsert
public void testInsert()
-
verifySupportsDeleteDeclaration
public void verifySupportsDeleteDeclaration()
-
verifySupportsRowLevelDeleteDeclaration
public void verifySupportsRowLevelDeleteDeclaration()
-
testDeleteAllDataFromTable
public void testDeleteAllDataFromTable()
-
testRowLevelDelete
public void testRowLevelDelete()
-
testUpdate
public void testUpdate()
-
testCreateSchema
public void testCreateSchema()
-
testRenameSchema
public void testRenameSchema()
-
testRenameTableAcrossSchemas
public void testRenameTableAcrossSchemas() throws Exception- Throws:
Exception
-
testSelectInformationSchemaTables
public void testSelectInformationSchemaTables()
-
testSelectInformationSchemaColumns
public void testSelectInformationSchemaColumns()
-
testShowCreateTable
public void testShowCreateTable()
-
testView
public void testView()
-
testMaterializedView
public void testMaterializedView()
-
-