public class BaseCsvTest extends ClusterTest
DrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
protected int |
BIG_COL_SIZE |
protected static String |
EMPTY_FILE |
protected static String |
FILE_N_NAME |
protected static String |
NESTED_DIR |
protected static String |
NESTED_FILE |
protected static String |
PART_DIR |
protected static String |
ROOT_FILE |
protected static boolean |
SCHEMA_BATCH_ENABLED
The scan operator can return an empty schema batch as
the first batch.
|
protected static String[] |
secondFile |
protected static File |
testDir |
protected static String[] |
validHeaders |
client, cluster, dirTestWatcherlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
BaseCsvTest() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBigColFile(boolean withHeader) |
protected static void |
buildFile(File file,
String[] data) |
protected static void |
buildFile(String fileName,
String[] data) |
protected static void |
buildNestedTable() |
protected static String |
buildTable(String tableName,
String[]... fileContents) |
protected void |
enableMultiScan() |
protected void |
enableSchema(boolean enable) |
protected void |
enableSchemaSupport() |
protected void |
resetMultiScan() |
protected void |
resetSchema() |
protected void |
resetSchemaSupport() |
protected static void |
setup(boolean skipFirstLine,
boolean extractHeader) |
protected static void |
setup(boolean skipFirstLine,
boolean extractHeader,
int maxParallelization) |
getFile, queryBuilder, run, runAndLog, runAndPrint, runAndPrint, shutdown, startCluster, testBuilderescapeJsonString, finishDrillTest, initDrillTestprotected final int BIG_COL_SIZE
protected static final String PART_DIR
protected static final String NESTED_DIR
protected static final String ROOT_FILE
protected static final String NESTED_FILE
protected static final String EMPTY_FILE
protected static boolean SCHEMA_BATCH_ENABLED
protected static String[] validHeaders
protected static String[] secondFile
protected static File testDir
protected static final String FILE_N_NAME
protected static void setup(boolean skipFirstLine,
boolean extractHeader)
throws Exception
Exceptionprotected static void setup(boolean skipFirstLine,
boolean extractHeader,
int maxParallelization)
throws Exception
Exceptionprotected static void buildNestedTable()
throws IOException
IOExceptionprotected void enableMultiScan()
protected void resetMultiScan()
protected void enableSchema(boolean enable)
protected void resetSchema()
protected static void buildFile(String fileName, String[] data) throws IOException
IOExceptionprotected static void buildFile(File file, String[] data) throws IOException
IOExceptionprotected String buildBigColFile(boolean withHeader) throws IOException
IOExceptionprotected static String buildTable(String tableName, String[]... fileContents) throws IOException
IOExceptionprotected void enableSchemaSupport()
protected void resetSchemaSupport()
Copyright © 2021 The Apache Software Foundation. All rights reserved.