public class TextCsvWithoutHeadersWithSchema extends BaseCsvTest
Not exhaustive: once we get past building the schema, operation is identical to the with-headers, with-schema case.
DrillTest.MemWatcherBIG_COL_SIZE, EMPTY_FILE, FILE_N_NAME, NESTED_DIR, NESTED_FILE, PART_DIR, ROOT_FILE, SCHEMA_BATCH_ENABLED, secondFile, testDir, validHeadersclient, cluster, dirTestWatcherlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TextCsvWithoutHeadersWithSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
filenameColumn()
Test with an implicit column.
|
static void |
setup() |
void |
testBasicSchema()
Test the simplest possible case: a table with one file:
Column in projection, table, and schema
Column in projection, but not in schema or table.
Column in schema and table, but not in projection.
Column in table (at end of row), but not in schema
Also tests type conversion, including "empty" (no) conversion.
|
void |
testMissingColumn()
Test column in schema, not in file.
|
buildBigColFile, buildFile, buildFile, buildNestedTable, buildTable, enableMultiScan, enableSchema, enableSchemaSupport, resetMultiScan, resetSchema, resetSchemaSupport, setup, setupgetFile, queryBuilder, run, runAndLog, runAndPrint, runAndPrint, shutdown, startCluster, testBuilderescapeJsonString, finishDrillTest, initDrillTestpublic void testBasicSchema()
throws Exception
Exceptionpublic void testMissingColumn()
throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.