public class TestResultSetLoaderUnions extends SubOperatorTest
DrillTest.MemWatcherdirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestResultSetLoaderUnions() |
| Modifier and Type | Method and Description |
|---|---|
void |
testListofListofScalar()
The semantics of the ListVector are such that it allows
multi-dimensional lists.
|
void |
testRepeatedListOfUnion()
The repeated list type is way off in the weeds in Drill.
|
void |
testSimpleList()
Test for the case of a list defined to contain exactly one type.
|
void |
testSimpleListDynamic()
Test a simple list created dynamically at load time.
|
void |
testSimpleListMultiTypes()
Try to create a simple (non-expandable) list while specifying
two types.
|
void |
testSimpleListNoTypes()
Try to create a simple (non-expandable) list without
giving a member type.
|
void |
testUnionAddTypes() |
void |
testUnionBasics() |
void |
testUnionOverflow() |
void |
testVariantListDynamic()
Test a variant list created dynamically at load time.
|
void |
testVariantListWithMap()
Dynamically add a map to a list that also contains scalars.
|
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic void testUnionBasics()
public void testUnionAddTypes()
public void testUnionOverflow()
public void testSimpleList()
public void testSimpleListDynamic()
public void testSimpleListNoTypes()
public void testSimpleListMultiTypes()
public void testVariantListDynamic()
This test is superficial. There are many odd cases to consider.
public void testVariantListWithMap()
testVariantListDynamic() passed.public void testListofListofScalar()
This test verifies that the (non-repeated) list vector can be used to create multi-dimensional arrays in the result set loader layer. However, the rest of Drill does not support this functionality at present, so this test is more of a proof-of- concept than a necessity.
public void testRepeatedListOfUnion()
This test models using the repeated list as a 2D array of UNION.
Copyright © 2021 The Apache Software Foundation. All rights reserved.