public class TestProjectEmitOutcome extends BaseTestOpBatchEmitOutcome
PhysicalOpUnitTestBase.BatchIterator, PhysicalOpUnitTestBase.MockExecutorFragmentContext, PhysicalOpUnitTestBase.MockPhysicalOperator
emptyInputRowSet, inputContainer, inputContainerSv2, inputOutcomes, inputSchema, nonEmptyInputRowSet, outputRecordCount
classpathScan, dirTestWatcher, drillbitContext, drillConf, fragContext, opContext, opCreatorReg, operatorFixture, scanDecodeExecutor, scanExecutor
c, optionManager
Constructor and Description |
---|
TestProjectEmitOutcome() |
Modifier and Type | Method and Description |
---|---|
void |
testProjectEmptyBatchEmitOutcome()
Test that if empty input batch is received with OK_NEW_SCHEMA or EMIT
outcome, then Project doesn't ignores these empty batches and instead
return them downstream with correct outcomes.
|
void |
testProjectNonEmptyBatchEmitOutcome()
Test to show if a non-empty batch is accompanied with EMIT outcome then
Project operator produces output for that batch and return the output using
EMIT outcome.
|
void |
testProjectNonEmptyFirst_EmptyBatchEmitOutcome()
Test to show that non-empty first batch produces output for that batch with OK_NEW_SCHEMA and later empty batch
with EMIT outcome is also passed through rather than getting ignored.
|
void |
testProjectNonEmptyFirst_EmptyOK_EmptyBatchEmitOutcome()
Test to show if an empty batch is accompanied with OK outcome then that batch is ignored by Project operator and
it doesn't return anything instead call's next() to get another batch.
|
void |
testProjectWithComplexWritersAndEmitOutcome_EmptyFirstBatch()
Test to show that in cases with functions in project list whose output is complex types, if Project sees an EMIT
outcome then it fails.
|
void |
testProjectWithComplexWritersAndEmitOutcome_NonEmptyFirstBatch()
Test to show that in cases with functions in project list whose output is complex types, if Project sees an EMIT
outcome then it fails.
|
afterTest, beforeTest, setUpBeforeClass
getJsonReadersFromBatchString, getJsonReadersFromInputFiles, getOpCreatorReg, getReaderListForJsonBatches, joinCond, legacyOpTestBuilder, mockFragmentContext, mockOpContext, opTestBuilder, ordering, parseExprs, setup, teardown
clear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManager
public void testProjectEmptyBatchEmitOutcome() throws Throwable
Throwable
public void testProjectNonEmptyBatchEmitOutcome() throws Throwable
Throwable
public void testProjectNonEmptyFirst_EmptyBatchEmitOutcome() throws Throwable
Throwable
public void testProjectNonEmptyFirst_EmptyOK_EmptyBatchEmitOutcome() throws Throwable
Throwable
public void testProjectWithComplexWritersAndEmitOutcome_NonEmptyFirstBatch() throws Throwable
Throwable
public void testProjectWithComplexWritersAndEmitOutcome_EmptyFirstBatch() throws Throwable
Throwable
Copyright © 2022 The Apache Software Foundation. All rights reserved.