public class TestTopNEmitOutcome 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 |
|---|
TestTopNEmitOutcome() |
| Modifier and Type | Method and Description |
|---|---|
void |
testRegularTopNWithEmptyDataSet() |
void |
testRegularTopNWithEmptyDataSetAndNoneOutcome() |
void |
testTopN_NonEmptyFirst_EmptyOKEmitOutcome()
Verifies TopNBatch correctness for the case where it receives non-empty batch in build schema phase followed by
empty batchs with OK and EMIT outcomes.
|
void |
testTopN_WithEmptyNonEmptyBatchesAndOKOutcome()
Tests for validating regular TopN behavior with no EMIT outcome
|
void |
testTopNEmptyBatchEmitOutcome()
Verifies that if TopNBatch receives empty batches with OK_NEW_SCHEMA and EMIT outcome then it correctly produces
empty batches as output.
|
void |
testTopNEmptyBatchFollowedByNonEmptyBatchEmitOutcome() |
void |
testTopNMultipleEMITOutcome() |
void |
testTopNMultipleEmptyBatchFollowedByNonEmptyBatchEmitOutcome() |
void |
testTopNMultipleInputToMultipleOutputBatch_LowerLimits() |
void |
testTopNMultipleInputToSingleOutputBatch() |
void |
testTopNMultipleOutputBatchWithLowerLimits()
Verifies that if TopNBatch receives multiple non-empty record batch with EMIT outcome in between then it produces
output for those input batch correctly.
|
void |
testTopNNonEmptyBatchEmitOutcome()
Verifies that if TopNBatch receives a RecordBatch with EMIT outcome post build schema phase then it produces
output for those input batch correctly.
|
void |
testTopNResetsAfterFirstEmitOutcome()
Verifies that if TopNBatch receives multiple non-empty record batch with EMIT outcome in between then it produces
output for those input batch correctly.
|
afterTest, beforeTest, setUpBeforeClassgetJsonReadersFromBatchString, getJsonReadersFromInputFiles, getOpCreatorReg, getReaderListForJsonBatches, joinCond, legacyOpTestBuilder, mockFragmentContext, mockOpContext, opTestBuilder, ordering, parseExprs, setup, teardownclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic void testTopNEmptyBatchEmitOutcome()
public void testTopNNonEmptyBatchEmitOutcome()
public void testTopNEmptyBatchFollowedByNonEmptyBatchEmitOutcome()
public void testTopNMultipleEmptyBatchFollowedByNonEmptyBatchEmitOutcome()
public void testTopNResetsAfterFirstEmitOutcome()
public void testTopN_NonEmptyFirst_EmptyOKEmitOutcome()
public void testTopNMultipleOutputBatchWithLowerLimits()
public void testTopNMultipleEMITOutcome()
public void testTopNMultipleInputToSingleOutputBatch()
public void testTopNMultipleInputToMultipleOutputBatch_LowerLimits()
public void testTopN_WithEmptyNonEmptyBatchesAndOKOutcome()
public void testRegularTopNWithEmptyDataSet()
public void testRegularTopNWithEmptyDataSetAndNoneOutcome()
Copyright © 2021 The Apache Software Foundation. All rights reserved.