public class TestReaderLevelProjection extends SubOperatorTest
DrillTest.MemWatcher
dirTestWatcher, fixture
logOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT
Constructor and Description |
---|
TestReaderLevelProjection() |
Modifier and Type | Method and Description |
---|---|
void |
testArrayMismatch()
Project of a non-array as an array
|
void |
testArrayProject()
Test project of an array.
|
void |
testDisjoint()
Drill is unique in that we can select (a, b) from a data source
that only offers (c, d).
|
void |
testFullList()
Test SELECT list with columns defined in a order and with
name case different than the early-schema table.
|
void |
testMapMismatch()
Project of a non-map as a map
|
void |
testMissing()
Test SELECT list with columns missing from the table schema.
|
void |
testOmittedMap()
Test the obscure case that the data source contains a map, but we
project only one of the members of the map.
|
void |
testOmittedMapMembers()
Test of a map with missing columns.
|
void |
testSimpleMapProject()
Simple map project.
|
void |
testSubset()
Test an explicit projection (providing columns) in which the
names in the project lists are a different case than the data
source, the order of columns differs, and we ask for a
subset of data source columns.
|
void |
testWildcard()
Test wildcard projection: take all columns on offer from
the data source, in the order that the data source specifies.
|
void |
testWildcardWithSchema()
Non-strict metadata schema.
|
void |
testWildcardWithStrictSchema()
Strict metadata schema.
|
classSetup, classTeardown
escapeJsonString, finishDrillTest, initDrillTest
public void testWildcard()
public void testFullList()
public void testMissing()
public void testSubset()
public void testDisjoint()
public void testOmittedMap()
public void testOmittedMapMembers()
public void testSimpleMapProject()
public void testMapMismatch()
public void testArrayProject()
public void testArrayMismatch()
public void testWildcardWithSchema()
public void testWildcardWithStrictSchema()
Copyright © 2021 The Apache Software Foundation. All rights reserved.