public class TestSorter extends DrillTest
DrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
static BaseDirTestWatcher |
dirTestWatcher |
static OperatorFixture |
fixture |
logOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestSorter() |
| Modifier and Type | Method and Description |
|---|---|
static Sort |
makeSortConfig(String key,
String sortOrder,
String nullOrder) |
void |
runSorterTest(RowSet.SingleRowSet rowSet,
RowSet.SingleRowSet expected) |
void |
runSorterTest(Sort popConfig,
RowSet.SingleRowSet rowSet,
RowSet.SingleRowSet expected) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testDesc() |
void |
testEmptyRowSet() |
void |
testInterval()
Test the INTERVAL data type as a sort key.
|
void |
testIntervalDay()
Test the INTERVALDAY data type as a sort key.
|
void |
testIntervalYear()
Test the INTERVALYEAR data type as a sort key.
|
void |
testMapKey() |
void |
testNullable()
Verify that nulls sort in the requested position: high or low.
|
void |
testNumericTypes() |
void |
testSingleRow() |
void |
testTwoRows() |
void |
testVarBinary()
Test the VARBINARY data type as a sort key.
|
void |
testVarCharTypes() |
escapeJsonString, finishDrillTest, initDrillTestpublic static OperatorFixture fixture
public static final BaseDirTestWatcher dirTestWatcher
public void runSorterTest(RowSet.SingleRowSet rowSet, RowSet.SingleRowSet expected) throws Exception
Exceptionpublic void runSorterTest(Sort popConfig, RowSet.SingleRowSet rowSet, RowSet.SingleRowSet expected) throws Exception
Exceptionpublic void testVarBinary()
throws Exception
Exception - for internal errorspublic void testInterval()
throws Exception
Exception - for internal errorspublic void testIntervalYear()
throws Exception
Exception - for internal errorspublic void testIntervalDay()
throws Exception
Exception - for internal errorspublic void testNullable()
throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.