public class TestVariantAccessors extends SubOperatorTest
Note that the union type is only partially supported in Drill. The list type is unsupported. (However, the list type works in the schema builder, row set writer, row set reader and the result set builder. It does not, however, work in the Project and other operators. Some assembly required for future use.)
DrillTest.MemWatcherdirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestVariantAccessors() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAddTypes()
Test a variant (AKA "union vector") at the top level, using
just scalar values.
|
void |
testBuildRowSetScalarList() |
void |
testBuildRowSetUnion() |
void |
testBuildRowSetUnionArray() |
void |
testListOfMaps()
List of maps.
|
void |
testListOfUnions()
Test a union list.
|
void |
testScalarList()
Test a scalar list.
|
void |
testScalarVariant()
Test a variant (AKA "union vector") at the top level, using
just scalar values.
|
void |
testUnionWithList()
Test a variant (AKA "union vector") at the top level which includes
a list.
|
void |
testUnionWithMap()
Test a variant (AKA "union vector") at the top level which
includes a map.
|
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic void testBuildRowSetUnion()
public void testScalarVariant()
public void testBuildRowSetScalarList()
public void testBuildRowSetUnionArray()
public void testUnionWithMap()
public void testScalarList()
public void testListOfMaps()
public void testListOfUnions()
public void testAddTypes()
public void testUnionWithList()
Copyright © 2021 The Apache Software Foundation. All rights reserved.