Package io.trino.testing
Class BaseFailureRecoveryTest
java.lang.Object
io.trino.testing.AbstractTestQueryFramework
io.trino.testing.BaseFailureRecoveryTest
- Direct Known Subclasses:
ExtendedFailureRecoveryTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanassertThatQuery(String query) protected static Function<MaterializedResult, Integer> protected static Function<MaterializedResult, Integer> protected voidcheckTemporaryTables(Set<String> queryIds) protected final QueryRunnerprotected abstract QueryRunnercreateQueryRunner(List<io.trino.tpch.TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, String> coordinatorProperties) protected static Function<MaterializedResult, Integer> protected RetryPolicyprotected static Function<MaterializedResult, Integer> protected static Function<MaterializedResult, Integer> protected Object[][]moreParallelTests(Object[][] some, Object[]... more) protected Object[]parallelTest(String name, Runnable runnable) protected static Function<MaterializedResult, Integer> protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidtestNonSelect(Optional<Session> session, Optional<String> setupQuery, String query, Optional<String> cleanupQuery, boolean writesData) protected voidprotected voidprotected voidtestSelect(String query) protected voidtestSelect(String query, Optional<Session> session) protected voidprotected voidtestTableModification(Optional<Session> session, Optional<String> setupQuery, String query, Optional<String> cleanupQuery) protected voidprotected voidprotected voidMethods 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, ensureTestNamingConvention, executeExclusively, formatSqlText, getDistributedQueryRunner, getDynamicFilteringStats, getExplainPlan, getExplainPlan, getGraphvizExplainPlan, getNodeCount, getQualifiedTableName, getQueryRunner, getSession, init, inTransaction, newTransaction, noJoinReordering, noJoinReordering, query, query, searchScanFilterAndProjectOperatorStats
-
Constructor Details
-
BaseFailureRecoveryTest
-
-
Method Details
-
getRetryPolicy
-
createQueryRunner
- Specified by:
createQueryRunnerin classAbstractTestQueryFramework- Throws:
Exception
-
createQueryRunner
protected abstract QueryRunner createQueryRunner(List<io.trino.tpch.TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, throws ExceptionString> coordinatorProperties) - Throws:
Exception
-
areWriteRetriesSupported
protected abstract boolean areWriteRetriesSupported() -
testSelect
-
testSelect
-
testSelect
-
testCreateTable
@Test protected void testCreateTable() -
testInsert
@Test protected void testInsert() -
testDelete
@Test protected void testDelete() -
testDeleteWithSubquery
@Test protected void testDeleteWithSubquery() -
testUpdate
@Test protected void testUpdate() -
testUpdateWithSubquery
@Test protected void testUpdateWithSubquery() -
testAnalyzeTable
@Test protected void testAnalyzeTable() -
testMerge
@Test protected void testMerge() -
testRefreshMaterializedView
@Test protected void testRefreshMaterializedView() -
testExplainAnalyze
@Test protected void testExplainAnalyze() -
testRequestTimeouts
@Test protected void testRequestTimeouts() -
testTableModification
-
testTableModification
-
testNonSelect
-
assertThatQuery
-
checkTemporaryTables
-
rootStage
-
boundaryCoordinatorStage
-
boundaryDistributedStage
-
intermediateDistributedStage
-
distributedStage
-
leafStage
-
parallelTest
-
moreParallelTests
-