public class TestMapAccessors extends SubOperatorTest
The tests here are a simplified form of those in TestResultSetLoaderMaps -- the RowSet mechanism requires a fixed schema, which makes this mechanism far simpler.
dirTestWatcher, fixture
Constructor and Description |
---|
TestMapAccessors() |
Modifier and Type | Method and Description |
---|---|
void |
testBasicRepeatedMap() |
void |
testBasics() |
void |
testDoubleNestedArray()
Test a doubly-nested array of maps.
|
void |
testDrill6809()
Test that the schema inference handles repeated map vectors.
|
void |
testNestedArray() |
void |
testNestedMapsRequired()
Create nested maps.
|
classSetup, classTeardown
public void testBasics()
public void testNestedMapsRequired()
public void testBasicRepeatedMap()
public void testNestedArray()
public void testDoubleNestedArray()
public void testDrill6809() throws Exception
It turns out that when some operators create a map array, it adds the $offset$ vector to the list of children for the map's MaterializedField. But, the RowSet utilities do not. This test verifies that both forms work.
Exception
Copyright © 2022 The Apache Software Foundation. All rights reserved.