public class JoinTestBase extends PlanTestBase
BaseTestQuery.ClassicTestServices, BaseTestQuery.SilentListener, BaseTestQuery.TestResultSetDrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_HJ |
static String |
DISABLE_JOIN_OPTIMIZATION |
static String |
DISABLE_MJ |
static String |
DISABLE_NLJ_SCALAR |
static String |
ENABLE_HJ |
static String |
ENABLE_MJ |
static String |
ENABLE_NLJ_SCALAR |
static String |
HJ_PATTERN |
static String |
INNER_JOIN_TYPE |
static String |
LEFT_JOIN_TYPE |
static String |
MJ_PATTERN |
static String |
NLJ_PATTERN |
static String |
RESET_HJ |
static String |
RESET_JOIN_OPTIMIZATION |
static String |
RIGHT_JOIN_TYPE |
EXPECTED_NOT_FOUND, JSON_FORMAT, OPTIQ_FORMAT, UNEXPECTED_FOUNDallocator, bits, client, config, serviceSetc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
JoinTestBase() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enableJoin(boolean hj,
boolean mj,
boolean nlj)
Allows to enable necessary join operator.
|
static void |
resetJoinOptions()
Allows to reset session options of custom join operators
|
void |
testJoinWithEmptyFile(File testDir,
String joinType,
String[] joinPattern,
long result)
This method runs a join query with one of the table generated as an
empty json file.
|
checkForMetadataFile, createMetadataDir, getPhysicalJsonPlan, getPlanInString, testPhysicalPlan, testPhysicalPlanExecutionBasedOnQuery, testPlanMatchingPatterns, testPlanMatchingPatterns, testPlanMatchingPatterns, testPlanMatchingPatterns, testPlanOneExcludedPattern, testPlanOneExpectedPattern, testPlanOneExpectedPatternOneExcluded, testPlanSubstrPatterns, testPlanWithAttributesMatchingPatterns, testRelLogicalJoinOrder, testRelLogicalPlanLevDigest, testRelLogicalPlanLevExplain, testRelPhysicalJoinOrder, testRelPhysicalPlanLevDigest, testRelPhysicalPlanLevExplainalterSession, cloneDefaultTestConfigProperties, closeClient, errorMsgTestHelper, getAllocator, getDrillbitContext, getFile, getPhysicalFileFromResource, getResultString, getUserPort, logResult, newTest, parseErrorHelper, printResult, resetAllSessionOptions, resetDrillbitCount, resetSessionOption, runSQL, setColumnWidth, setColumnWidths, setSessionOption, setSessionOption, setSessionOption, setSessionOption, setupDefaultTestCluster, test, test, testBuilder, testLogicalWithResults, testNoResult, testNoResult, testPhysical, testPhysicalFromFile, testPhysicalWithResults, testPreparedStatement, testRunAndPrint, testRunAndReturn, testSql, testSqlWithResults, testWithListener, updateClient, updateClient, updateClient, updateTestCluster, updateTestClusterclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic static final String HJ_PATTERN
public static final String MJ_PATTERN
public static final String NLJ_PATTERN
public static final String INNER_JOIN_TYPE
public static final String LEFT_JOIN_TYPE
public static final String RIGHT_JOIN_TYPE
public static final String DISABLE_HJ
public static final String ENABLE_HJ
public static final String RESET_HJ
public static final String DISABLE_MJ
public static final String ENABLE_MJ
public static final String DISABLE_NLJ_SCALAR
public static final String ENABLE_NLJ_SCALAR
public static final String DISABLE_JOIN_OPTIMIZATION
public static final String RESET_JOIN_OPTIMIZATION
public void testJoinWithEmptyFile(File testDir, String joinType, String[] joinPattern, long result) throws Exception
testDir - in which the empty json file is generated.joinType - to be executed.joinPattern - to look for the pattern in the successful run.result - number of the output rows.Exceptionpublic static void enableJoin(boolean hj,
boolean mj,
boolean nlj)
throws Exception
hj - hash join operatormj - merge join operatornlj - nested-loop join operatorException - If any exception is obtained, all set options should be resetpublic static void resetJoinOptions()
Copyright © 2021 The Apache Software Foundation. All rights reserved.