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 voidensureDistributedQueryRunner()Ensure the tests are run withDistributedQueryRunner.voidensureTestNamingConvention()protected booleanhasBehavior(TestingConnectorBehavior connectorBehavior)voidtestAggregation()voidtestCreateSchema()voidtestCreateTable()voidtestCreateTableAsSelect()voidtestDelete()voidtestHaving()voidtestInsert()voidtestJoin()voidtestLimit()voidtestMaterializedView()voidtestPredicate()voidtestRenameTable()voidtestRenameTableAcrossSchemas()voidtestSelect()voidtestSelectInformationSchemaColumns()voidtestSelectInformationSchemaTables()voidtestShowCreateTable()voidtestTopN()voidtestView()-
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
-
-
-
-
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()
-
testDelete
public void testDelete()
-
testCreateSchema
public void testCreateSchema()
-
testRenameTable
public void testRenameTable()
-
testRenameTableAcrossSchemas
public void testRenameTableAcrossSchemas()
-
testSelectInformationSchemaTables
public void testSelectInformationSchemaTables()
-
testSelectInformationSchemaColumns
public void testSelectInformationSchemaColumns()
-
testShowCreateTable
public void testShowCreateTable()
-
testView
public void testView()
-
testMaterializedView
public void testMaterializedView()
-
-