public class TestMetastoreCommands extends ClusterTest
DrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
static Map<SchemaPath,ColumnStatistics<?>> |
DIR0_1994_Q1_SEGMENT_COLUMN_STATISTICS |
static Map<SchemaPath,ColumnStatistics<?>> |
DIR0_1994_SEGMENT_COLUMN_STATISTICS |
static Map<SchemaPath,ColumnStatistics<?>> |
TABLE_COLUMN_STATISTICS |
static MetadataInfo |
TABLE_META_INFO |
org.junit.rules.ExpectedException |
thrown |
client, cluster, dirTestWatcherlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestMetastoreCommands() |
getFile, queryBuilder, run, runAndLog, runAndPrint, runAndPrint, shutdown, startCluster, testBuilderescapeJsonString, finishDrillTest, initDrillTestpublic static final Map<SchemaPath,ColumnStatistics<?>> TABLE_COLUMN_STATISTICS
public static final Map<SchemaPath,ColumnStatistics<?>> DIR0_1994_SEGMENT_COLUMN_STATISTICS
public static final Map<SchemaPath,ColumnStatistics<?>> DIR0_1994_Q1_SEGMENT_COLUMN_STATISTICS
public static final MetadataInfo TABLE_META_INFO
public org.junit.rules.ExpectedException thrown
public void prepare()
public void testAnalyzeWithDisabledMetastore()
throws Exception
Exceptionpublic void testSelectWithDisabledMetastore()
throws Exception
Exceptionpublic void testTableMetadataWithLevels()
throws Exception
Exceptionpublic void testAnalyzeLowerLevelMetadata()
throws Exception
Exceptionpublic void testIncrementalAnalyzeWithFewerColumns()
throws Exception
Exceptionpublic void testIncrementalAnalyzeWithMoreColumns()
throws Exception
Exceptionpublic void testIncrementalAnalyzeWithEmptyColumns()
throws Exception
Exceptionpublic void testIncrementalAnalyzeUnchangedTable()
throws Exception
Exceptionpublic void testIncrementalAnalyzeNewParentSegment()
throws Exception
Exceptionpublic void testIncrementalAnalyzeNewChildSegment()
throws Exception
Exceptionpublic void testIncrementalAnalyzeNewFile()
throws Exception
Exceptionpublic void testIncrementalAnalyzeRemovedParentSegment()
throws Exception
Exceptionpublic void testIncrementalAnalyzeRemovedNestedSegment()
throws Exception
Exceptionpublic void testIncrementalAnalyzeRemovedFile()
throws Exception
Exceptionpublic void testIncrementalAnalyzeUpdatedFile()
throws Exception
Exceptionpublic void testIncrementalAnalyzeWithDifferentMetadataLevel()
throws Exception
Exceptionpublic void testAnalyzeWithMapColumns()
throws Exception
Exceptionpublic void testPartitionPruningRootSegment()
throws Exception
Exceptionpublic void testPartitionPruningVarCharPartition()
throws Exception
Exceptionpublic void testPartitionPruningBinaryPartition()
throws Exception
Exceptionpublic void testPartitionPruningSingleLeafPartition()
throws Exception
Exceptionpublic void testPartitionPruningSingleNonLeafPartition()
throws Exception
Exceptionpublic void testPartitionPruningDir1Filter()
throws Exception
Exceptionpublic void testPartitionPruningNonExistentPartition()
throws Exception
Exceptionpublic void testAnalyzeMultilevelTable()
throws Exception
Exceptionpublic void testBooleanPartitionPruning()
throws Exception
Exceptionpublic void testIntWithNullsPartitionPruning()
throws Exception
Exceptionpublic void testPartitionPruningWithIsNull()
throws Exception
Exceptionpublic void testPartitionPruningWithIsNotNull()
throws Exception
Exceptionpublic void testNonInterestingColumnInFilter()
throws Exception
Exceptionpublic void testSelectAfterAnalyzeWithNonRowGroupLevel()
throws Exception
Exceptionpublic void testAnalyzeWithDisabledFallback()
throws Exception
Exceptionpublic void testAnalyzeWithSchemaError()
throws Exception
Exceptionpublic void testAnalyzeWithDisabledStatistics()
throws Exception
Exceptionpublic void testAnalyzeWithoutStatisticsWithStatsFile()
throws Exception
Exceptionpublic void testAnalyzeWithSampleStatistics()
throws Exception
Exceptionpublic void testDropNonExistingMetadata()
throws Exception
Exceptionpublic void testIncorrectAnalyzeCommand()
throws Exception
Exceptionpublic void testIncompleteAnalyzeCommand()
throws Exception
Exceptionpublic void testSelectWithOutdatedMetadataWithUpdatedFile()
throws Exception
Exceptionpublic void testSelectWithOutdatedMetadataWithNewFile()
throws Exception
Exceptionpublic void testDescribeWithMetastore()
throws Exception
Exceptionpublic void testSelectFromInfoSchemaTablesWithMetastore()
throws Exception
Exceptionpublic void testSelectFromInfoSchemaColumnsWithMetastore()
throws Exception
Exceptionpublic void testSelectFromInfoSchemaPartitionsWithMetastore()
throws Exception
Exceptionpublic void testAnalyzeWithLeadingSlash()
throws Exception
Exceptionpublic void testAnalyzeEmptyNullableParquetTable()
throws Exception
Exceptionpublic void testAnalyzeEmptyRequiredParquetTable()
throws Exception
Exceptionpublic void testAnalyzeNonEmptyTableWithEmptyFile()
throws Exception
Exceptionpublic void testSelectEmptyRequiredParquetTable()
throws Exception
Exceptionpublic void testSelectNonEmptyTableWithEmptyFile()
throws Exception
Exceptionpublic void testTableFunctionForParquet()
throws Exception
Exceptionpublic void testTableFunctionWithDrop()
throws Exception
Exceptionpublic void testAnalyzeWithClassPathSystem()
throws Exception
Exceptionpublic void testAnalyzeWithRootSchema()
throws Exception
Exceptionpublic void testAnalyzeWithNonWritableWorkspace()
throws Exception
Exceptionpublic static <T> ColumnStatistics<T> getColumnStatistics(T minValue, T maxValue, long rowCount, TypeProtos.MinorType minorType)
public static BaseTableMetadata getBaseTableMetadata(TableInfo tableInfo, File table, TupleMetadata schema)
public static BaseTableMetadata getBaseTableMetadata(TableInfo tableInfo, File table)
public static long getMaxLastModified(File file)
file - file whose last modification time should be returnedCopyright © 2021 The Apache Software Foundation. All rights reserved.