public class TestOperatorRecordBatch extends SubOperatorTest
DrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MSG |
dirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestOperatorRecordBatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
testBatchAccessor()
The record batch abstraction has a bunch of methods to work with a vector container.
|
void |
testFailAfterClose()
Simulate the caller failing the operator after close.
|
void |
testFailBeforeClose()
Simulate the caller failing the operator after EOF but before close.
|
void |
testFailEarly()
Simulate the caller failing the operator before getting the schema.
|
void |
testFailWhileReading()
Simulate the caller failing the operator before EOF.
|
void |
testFirstBatchEOF()
Simulate reaching EOF on the first batch.
|
void |
testNormalLifeCycle()
Simulate a normal run: return some batches, encounter a schema change.
|
void |
testSchemaChange() |
void |
testSchemaEOF()
Simulate reaching EOF when trying to create the schema.
|
void |
testSv2()
Test that an SV2 is properly handled by the proper container accessor.
|
void |
testTruncatedLifeCycle()
Simulate a truncated life cycle: next() is never called.
|
void |
testUserExceptionOnBind() |
void |
testUserExceptionOnBuildSchema() |
void |
testUserExceptionOnClose() |
void |
testUserExceptionOnNext() |
void |
testWrappedExceptionOnBind()
Failure on the bind method.
|
void |
testWrappedExceptionOnBuildSchema()
Failure when building the schema (first call to next()).
|
void |
testWrappedExceptionOnClose()
Failure when closing the operator implementation.
|
void |
testWrappedExceptionOnNext()
Failure on the second or subsequent calls to next(), when actually
fetching a record batch.
|
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic static final String ERROR_MSG
public void testNormalLifeCycle()
public void testTruncatedLifeCycle()
public void testSchemaEOF()
public void testFirstBatchEOF()
public void testFailEarly()
public void testFailWhileReading()
public void testFailBeforeClose()
public void testFailAfterClose()
public void testBatchAccessor()
public void testSchemaChange()
public void testSv2()
public void testWrappedExceptionOnBind()
public void testUserExceptionOnBind()
public void testWrappedExceptionOnBuildSchema()
public void testUserExceptionOnBuildSchema()
public void testWrappedExceptionOnNext()
public void testUserExceptionOnNext()
public void testWrappedExceptionOnClose()
public void testUserExceptionOnClose()
Copyright © 2021 The Apache Software Foundation. All rights reserved.