public class TestLogReader extends ClusterTest
DrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_ONLY_PATTERN |
static BaseDirTestWatcher |
dirTestWatcher |
protected static File |
schemaAndConfigDir |
protected static File |
schemaOnlyDir |
client, clusterlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestLogReader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setup() |
void |
testCount() |
void |
testDate() |
void |
testEmptyPattern()
Verify that an error is thrown if no pattern is provided in
the plugin config, table function or provided schema.
|
void |
testExplicitProject() |
void |
testFirewallSchema() |
void |
testFull() |
void |
testMissingColumns() |
void |
testPluginSerialization()
The config classes for this plugin have been trick to get right.
|
void |
testProvidedSchema() |
void |
testRaw() |
void |
testRawNoSchema() |
void |
testRawUMNoSchema() |
void |
testSchemaOnlyNoCols()
Test the case in which the plugin config contains no information
other than the file extensions.
|
void |
testSchemaOnlyWithCols()
Test the case in which the plugin config contains no information
other than the file extensions.
|
void |
testSchemaOnlyWithMissingCols()
Corner case: provided schema has the regex and two of the three
columns, the third takes a default name and type.
|
void |
testSomeFieldsQueryNoSchema() |
void |
testStarQueryNoSchema()
Test log queries without a defined schema using select *
|
void |
testTableFunction()
Test the ability to use table functions to specify the regex.
|
void |
testTableFunctionNoGroups()
Test the use of a table function to provide the regex.
|
void |
testTableFunctionWithConfigAndSchema()
Test that a schema can be provided in a table function that also includes
plugin config.
|
void |
testTableFunctionWithSchema()
Test the use of the schema table function to provide a schema
including types.
|
void |
testUMNoSchema() |
void |
testWildcard() |
void |
testWildcardLargeFile()
Tests for no crashes; does not validate results, unfortunately.
|
getFile, queryBuilder, run, runAndLog, runAndPrint, runAndPrint, shutdown, startCluster, testBuilderescapeJsonString, finishDrillTest, initDrillTestpublic static final String DATE_ONLY_PATTERN
public static final BaseDirTestWatcher dirTestWatcher
protected static File schemaAndConfigDir
protected static File schemaOnlyDir
public void testWildcard()
throws RpcException
RpcExceptionpublic void testWildcardLargeFile()
throws RpcException
RpcExceptionpublic void testExplicitProject()
throws RpcException
RpcExceptionpublic void testMissingColumns()
throws RpcException
RpcExceptionpublic void testRaw()
throws RpcException
RpcExceptionpublic void testDate()
throws RpcException
RpcExceptionpublic void testCount()
throws RpcException
RpcExceptionpublic void testFull()
throws RpcException
RpcExceptionpublic void testStarQueryNoSchema()
throws RpcException
RpcExceptionpublic void testSomeFieldsQueryNoSchema()
throws RpcException
RpcExceptionpublic void testRawNoSchema()
throws RpcException
RpcExceptionpublic void testUMNoSchema()
throws RpcException
RpcExceptionpublic void testRawUMNoSchema()
throws RpcException
RpcExceptionpublic void testSchemaOnlyNoCols()
throws Exception
Exceptionpublic void testSchemaOnlyWithCols()
throws Exception
Exceptionpublic void testSchemaOnlyWithMissingCols()
throws Exception
Exceptionpublic void testEmptyPattern()
throws Exception
Exceptionpublic void testTableFunction()
throws Exception
Exceptionpublic void testTableFunctionNoGroups()
throws Exception
Exceptionpublic void testTableFunctionWithSchema()
throws Exception
Exceptionpublic void testTableFunctionWithConfigAndSchema()
throws Exception
Exceptionpublic void testPluginSerialization()
throws IOException
IOExceptionpublic void testFirewallSchema()
throws RpcException
RpcExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.