public class TestMissingColumnLoader extends SubOperatorTest
In anticipation of having type information, this mechanism can create the classic nullable Int null column, or one of any other type and mode.
DrillTest.MemWatcherdirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestMissingColumnLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAllModes()
More extensive schema test.
|
void |
testBasics()
Test the simplest case: default null type, nothing in the vector
cache.
|
void |
testCustomNullType()
Test the ability to use a type other than nullable INT for null
columns.
|
void |
testDefaultValue()
Test the ability to provide a default value for a "null" column.
|
void |
testEmpty() |
void |
testVectorCache()
Drill requires "schema persistence": if a scan operator
reads two files, F1 and F2, then the scan operator must
provide the same vectors from both readers.
|
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic void testBasics()
public void testEmpty()
public void testCustomNullType()
public void testDefaultValue()
public void testVectorCache()
Test the case in which the reader for F1 found columns (a, b, c) but, F2 found only (a, b), requiring that we fill in column c, filled with nulls, but of the same type that it was in file F1. We use a vector cache to pull off this trick. This test ensures that the null column mechanism looks in that vector cache when asked to create a nullable column.
public void testAllModes()
Copyright © 2021 The Apache Software Foundation. All rights reserved.