Package io.trino.testing
Class AbstractTestDistributedQueries
- java.lang.Object
-
- io.trino.testing.AbstractTestQueryFramework
-
- io.trino.testing.AbstractTestQueries
-
- io.trino.testing.AbstractTestDistributedQueries
-
public abstract class AbstractTestDistributedQueries extends AbstractTestQueries
Generic test for connectors exercising connector's read and write capabilities.- See Also:
AbstractTestIntegrationSmokeTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractTestDistributedQueries.DataMappingTestSetup
-
Field Summary
-
Fields inherited from class io.trino.testing.AbstractTestQueries
CUSTOM_FUNCTIONS, TEST_CATALOG_PROPERTIES, TEST_SYSTEM_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description AbstractTestDistributedQueries()
-
Method Summary
-
Methods inherited from class io.trino.testing.AbstractTestQueries
largeInValuesCount, testAggregationOverUnknown, testAliasedInInlineView, testArithmeticNegation, testAverageAll, testCast, testColumnAliases, testComplexQuery, testCorrelatedJoin, testCountAll, testCountColumn, testDistinct, testDistinctHaving, testDistinctLimit, testDistinctMultipleFields, testDistinctWithOrderBy, testExcept, testExceptWithAggregation, testFilterPushdownWithAggregation, testGroupByKeyPredicatePushdown, testHaving, testHaving2, testHaving3, testHavingWithoutGroupBy, testIn, testInformationSchemaFiltering, testInformationSchemaUppercaseName, testInlineView, testInlineViewWithProjections, testIntersect, testIntersectWithAggregation, testLargeIn, testLimit, testLimitInInlineView, testLimitIntMax, testLimitPushDown, testLimitWithAggregation, testMaxBy, testMaxByN, testMinBy, testMinByN, testNonDeterministic, testNonDeterministicAggregationPredicatePushdown, testNonDeterministicTableScanPredicatePushdown, testPredicatePushdown, testPruningCountAggregationOverScalar, testQuotedIdentifiers, testRepeatedAggregations, testRepeatedOutputs, testRepeatedOutputs2, testRollupOverUnion, testScalarSubquery, testSelectAllFromTable, testSelectCaseInsensitive, testSelectColumnOfNulls, testSelectWithComparison, testShowColumns, testShowSchemas, testShowSchemasFrom, testShowSchemasLike, testShowSchemasLikeWithEscape, testShowTables, testShowTablesFrom, testShowTablesLike, testSubqueriesWithDisjunction, testTableSampleBernoulli, testTableSampleBernoulliBoundaryValues, testTopN, testTopNByMultipleFields, testUnionAllPredicateMoveAroundWithOverlappingProjections
-
Methods inherited from class io.trino.testing.AbstractTestQueryFramework
assertAccessAllowed, assertAccessAllowed, assertAccessDenied, assertAccessDenied, assertExplainAnalyze, assertExplainAnalyze, 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
-
supportsDelete
protected boolean supportsDelete()
-
supportsViews
protected boolean supportsViews()
-
supportsArrays
protected boolean supportsArrays()
-
supportsCommentOnTable
protected boolean supportsCommentOnTable()
-
supportsCommentOnColumn
protected boolean supportsCommentOnColumn()
-
ensureDistributedQueryRunner
public void ensureDistributedQueryRunner()
Ensure the tests are run withDistributedQueryRunner. E.g.LocalQueryRunnertakes some shortcuts, not exercising certain aspects.
-
testSetSession
public void testSetSession()
-
testResetSession
public void testResetSession()
-
testCreateTable
public void testCreateTable()
-
testCreateTableAsSelect
public void testCreateTableAsSelect()
-
assertCreateTableAsSelect
protected void assertCreateTableAsSelect(String query, String rowCountQuery)
-
assertCreateTableAsSelect
protected void assertCreateTableAsSelect(String query, String expectedQuery, String rowCountQuery)
-
assertCreateTableAsSelect
protected void assertCreateTableAsSelect(Session session, String query, String expectedQuery, String rowCountQuery)
-
testRenameTable
public void testRenameTable()
-
testCommentTable
public void testCommentTable()
-
testCommentColumn
public void testCommentColumn()
-
testRenameColumn
public void testRenameColumn()
-
testDropColumn
public void testDropColumn()
-
testAddColumn
public void testAddColumn()
-
testInsert
public void testInsert()
-
testInsertUnicode
public void testInsertUnicode()
-
testInsertArray
public void testInsertArray()
-
testDelete
public void testDelete()
-
testDropTableIfExists
public void testDropTableIfExists()
-
testView
public void testView()
-
testViewCaseSensitivity
public void testViewCaseSensitivity()
-
testCompatibleTypeChangeForView
public void testCompatibleTypeChangeForView()
-
testCompatibleTypeChangeForView2
public void testCompatibleTypeChangeForView2()
-
testViewMetadata
public void testViewMetadata()
-
testShowCreateView
public void testShowCreateView()
-
testQueryLoggingCount
public void testQueryLoggingCount()
-
testShowSchemasFromOther
public void testShowSchemasFromOther()
-
testSymbolAliasing
public void testSymbolAliasing()
-
testWrittenStats
public void testWrittenStats()
-
testCreateSchema
public void testCreateSchema()
-
testInsertForDefaultColumn
public void testInsertForDefaultColumn()
-
createTableWithDefaultColumns
protected abstract TestTable createTableWithDefaultColumns()
-
testColumnName
public void testColumnName(String columnName)
-
isColumnNameRejected
protected boolean isColumnNameRejected(Exception exception, String columnName, boolean delimited)
-
testColumnNameDataProvider
public Object[][] testColumnNameDataProvider()
-
testDataMappingSmokeTest
public void testDataMappingSmokeTest(AbstractTestDistributedQueries.DataMappingTestSetup dataMappingTestSetup)
-
testDataMappingSmokeTestDataProvider
public final Object[][] testDataMappingSmokeTestDataProvider()
-
filterDataMappingSmokeTestData
protected Optional<AbstractTestDistributedQueries.DataMappingTestSetup> filterDataMappingSmokeTestData(AbstractTestDistributedQueries.DataMappingTestSetup dataMappingTestSetup)
-
-