public class TestSortEmitOutcome extends BaseTestOpBatchEmitOutcome
PhysicalOpUnitTestBase.BatchIterator, PhysicalOpUnitTestBase.MockExecutorFragmentContext, PhysicalOpUnitTestBase.MockPhysicalOperatorDrillTest.MemWatcheremptyInputRowSet, inputContainer, inputContainerSv2, inputOutcomes, inputSchema, nonEmptyInputRowSet, outputRecordCountclasspathScan, dirTestWatcher, drillbitContext, drillConf, fragContext, opContext, opCreatorReg, operatorFixture, scanDecodeExecutor, scanExecutorc, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestSortEmitOutcome() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeOperator() |
static void |
defineOrdering() |
void |
testRegularTopNWithEmptyDataSet() |
void |
testSort_NonEmptyFirst_EmptyOKEmitOutcome()
Verifies ExternalSortBatch behavior when it receives incoming batches with different IterOutcomes like
OK_NEW_SCHEMA / OK / EMIT / NONE
|
void |
testSortEmptyBatchEmitOutcome()
Verifies that if SortBatch receives empty batches with OK_NEW_SCHEMA and EMIT outcome then it correctly produces
empty batches as output.
|
void |
testSortEmptyBatchFollowedByNonEmptyBatchEmitOutcome()
Verifies ExternalSortBatch behavior when it receives first incoming batch post buildSchema phase as empty batch
with EMIT outcome followed by non-empty batch with EMIT outcome.
|
void |
testSortMultipleEMITOutcome() |
void |
testSortMultipleEmptyBatchWithANonEmptyBatchEmitOutcome()
Verifies ExternalSortBatch behavior with runs of empty batch with EMIT outcome followed by an non-empty batch
with EMIT outcome.
|
void |
testSortMultipleInputToSingleOutputBatch()
Verifies ExternalSortBatch behavior when it receives multiple non-empty batch across same EMIT boundary such
that all the output records can fit within single output batch.
|
void |
testSortNonEmptyBatchEmitOutcome()
Verifies ExternalSortBatch handling of first non-empty batch with EMIT outcome post buildSchema phase.
|
void |
testSpillNotSupportedWithEmitOutcome()
Verifies ExternalSortBatch behavior when it sees batches with EMIT outcome but has to spill to disk because of
memory pressure.
|
void |
testSpillWithNoEmitOutcome()
Verifies successful spilling in absence of EMIT outcome
|
void |
testTopN_WithEmptyNonEmptyBatchesAndOKOutcome()
Test for validating ExternalSortBatch behavior without EMIT outcome
|
void |
testTopNMultipleOutputBatch() |
void |
testTopNResetsAfterFirstEmitOutcome()
Verifies ExternalSortBatch behavior when it receives non-empty batch in BuildSchema phase followed by empty EMIT
batch.
|
afterTest, beforeTest, setUpBeforeClassgetJsonReadersFromBatchString, getJsonReadersFromInputFiles, getOpCreatorReg, getReaderListForJsonBatches, joinCond, legacyOpTestBuilder, mockFragmentContext, mockOpContext, opTestBuilder, ordering, parseExprs, setup, teardownclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic static void defineOrdering()
public void closeOperator()
public void testSortEmptyBatchEmitOutcome()
public void testSortNonEmptyBatchEmitOutcome()
public void testSortEmptyBatchFollowedByNonEmptyBatchEmitOutcome()
public void testSortMultipleEmptyBatchWithANonEmptyBatchEmitOutcome()
public void testTopNResetsAfterFirstEmitOutcome()
public void testSort_NonEmptyFirst_EmptyOKEmitOutcome()
public void testTopNMultipleOutputBatch()
public void testSortMultipleEMITOutcome()
public void testSortMultipleInputToSingleOutputBatch()
public void testSpillNotSupportedWithEmitOutcome()
throws Exception
Exceptionpublic void testTopN_WithEmptyNonEmptyBatchesAndOKOutcome()
public void testRegularTopNWithEmptyDataSet()
Copyright © 2021 The Apache Software Foundation. All rights reserved.