public class TestColumnsArrayParser extends SubOperatorTest
dirTestWatcher, fixture| Constructor and Description |
|---|
TestColumnsArrayParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
testColumnsArray()
Test the special "columns" column that asks to return all columns
as an array.
|
void |
testColumnsArrayCaseInsensitive() |
void |
testColumnsAsMap() |
void |
testColumnsElements() |
void |
testColumnsIndexTooLarge() |
void |
testErrorColumnAndColumnsArray()
Exclude a column and `columns` (reversed order of previous test).
|
void |
testErrorColumnsArrayAndColumn()
The `columns` column is special; can't include both `columns` and
a named column in the same project.
|
void |
testErrorRequiredAndExtra() |
void |
testMetadataColumnsWithColumnsArray()
The `columns` column is special: can't be used with other column names.
|
void |
testRequiredColumnsArray() |
void |
testRequiredWildcard() |
void |
testTwoColumnsArray()
Requesting `columns` twice: second is ignored.
|
void |
testWildcardAndColumns()
If a query is of the form:
|
classSetup, classTeardownpublic void testColumnsArray()
public void testRequiredColumnsArray()
public void testRequiredWildcard()
public void testColumnsArrayCaseInsensitive()
public void testColumnsElements()
public void testErrorColumnsArrayAndColumn()
TODO: This should only be true for text readers, make this an option.
public void testErrorColumnAndColumnsArray()
public void testTwoColumnsArray()
public void testErrorRequiredAndExtra()
public void testColumnsIndexTooLarge()
public void testMetadataColumnsWithColumnsArray()
public void testWildcardAndColumns()
select * from dfs.`multilevel/csv` where columns[1] < 1000Then the projection list passed to the scan operator includes both the wildcard and the `columns` array. We can ignore one of them.
public void testColumnsAsMap()
Copyright © 2022 The Apache Software Foundation. All rights reserved.