public class TestCsvWithoutHeaders extends BaseCsvTest
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 |
|---|
TestCsvWithoutHeaders() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
buildNestedTableWithoutHeaders() |
void |
doTestWildcardAndMetadata() |
static void |
setup() |
void |
testColumns() |
void |
testColumnsAndMetadata() |
void |
testColumnsAsMap()
When the `columns` array is allowed, the projection list cannot
implicitly suggest that `columns` is a map.
|
void |
testColumnsIndexOverflow()
When the `columns` array is allowed, and an index is projected,
it must be below the maximum.
|
void |
testEmptyFile()
An empty no-headers file has a valid schema: it will always
be `columns`.
|
void |
testHugeColumn() |
void |
testPartitionExpansion()
Test partition expansion.
|
void |
testRaggedRows() |
void |
testSpecificColumns() |
void |
testWildcard()
Verify that the wildcard expands to the `columns` array
|
buildBigColFile, buildFile, buildFile, buildNestedTable, buildTable, enableMultiScan, enableSchema, enableSchemaSupport, resetMultiScan, resetSchema, resetSchemaSupport, setup, setupgetFile, queryBuilder, run, runAndLog, runAndPrint, runAndPrint, shutdown, startCluster, testBuilderescapeJsonString, finishDrillTest, initDrillTestprotected static void buildNestedTableWithoutHeaders()
throws IOException
IOExceptionpublic void testWildcard()
throws IOException
IOExceptionpublic void testEmptyFile()
throws IOException
IOExceptionTestEmptyInputSql#testQueryEmptyCsv}public void testColumns()
throws IOException
IOExceptionpublic void doTestWildcardAndMetadata()
throws IOException
IOExceptionpublic void testColumnsAndMetadata()
throws IOException
IOExceptionpublic void testSpecificColumns()
throws IOException
IOExceptionpublic void testRaggedRows()
throws IOException
IOExceptionpublic void testPartitionExpansion()
throws IOException
V3, as in V2 before Drill 1.12, puts partition columns after data columns (so that data columns don't shift positions if files are nested to another level.)
IOExceptionpublic void testColumnsAsMap()
throws Exception
V2 message: DATA_READ ERROR: Selected column 'columns' must be an array index
Exceptionpublic void testColumnsIndexOverflow()
throws Exception
V2 message: INTERNAL_ERROR ERROR: 70000
Exceptionpublic void testHugeColumn()
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.