public class TestScanSchemaTracker extends BaseTest
| Constructor and Description |
|---|
TestScanSchemaTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
testBasics()
Basic test: select a set of columns (a, b, c) when the
data source has an early schema of (a, b).
|
void |
testEmptyProject() |
void |
testEmptyProjectWithProvidedSchema() |
void |
testProvidedSchema()
The provided schema is a bit like a defined schema, but it is more
of an advisory.
|
void |
testProvidedSchemaWithWildcard() |
void |
testStrictProvidedSchemaWithWildcard() |
void |
testWildcard()
Wildcard projection, schema change allowed.
|
void |
testWildcardWithExplicitWithProvided()
Test for a query of the form:
{code SELECT * FROM t ORDER BY a} in which we get a projection list of the form If we are given a provided schema of {@code (a, b, c)}, the "natural" expansion will be @{code (b, c, a)}, but we add a hack to get what the user expects: @{code (a, b, c)}. |
void |
testWildcardWithExplicitWithProvidedAndReaderSchema() |
void |
testWildcardWithExplicitWithReaderSchema()
Test for a query of the form:
{code SELECT * FROM t ORDER BY a} in which we get a projection list of the form If we are given a reader schema of {@code (a, b, c)}, the "natural" expansion will be @{code (b, c, a)}, but we add a hack to get what the user expects: @{code (a, b, c)}. |
void |
testWildcardWithoutSchemaChange()
Wildcard projection, schema change not allowed; first batch
defines the schema and projection for later readers.
|
public void testBasics()
public void testWildcard()
public void testProvidedSchema()
public void testProvidedSchemaWithWildcard()
public void testWildcardWithExplicitWithProvided()
public void testStrictProvidedSchemaWithWildcard()
public void testWildcardWithoutSchemaChange()
public void testEmptyProject()
public void testEmptyProjectWithProvidedSchema()
public void testWildcardWithExplicitWithReaderSchema()
public void testWildcardWithExplicitWithProvidedAndReaderSchema()
Copyright © 2021 The Apache Software Foundation. All rights reserved.