public abstract class TestHiveMetaStore
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
protected static HiveMetaStoreClient |
client |
protected static HiveConf |
hiveConf |
protected static boolean |
isThriftClient |
protected static Warehouse |
warehouse |
Constructor and Description |
---|
TestHiveMetaStore() |
Modifier and Type | Method and Description |
---|---|
static void |
partitionTester(HiveMetaStoreClient client,
HiveConf hiveConf) |
protected void |
setUp() |
void |
testAlterPartition() |
void |
testAlterTable() |
void |
testAlterViewParititon() |
void |
testColumnStatistics() |
void |
testComplexTable() |
void |
testComplexTypeApi() |
void |
testConcurrentMetastores()
Verify that if another client, either a metastore Thrift server or a Hive CLI instance
renames a table recently created by this instance, and hence potentially in its cache, the
current instance still sees the change.
|
void |
testDatabase() |
void |
testDatabaseLocation() |
void |
testDatabaseLocationWithPermissionProblems() |
void |
testDropTable() |
void |
testFilterLastPartition()
Test filtering based on the value of the last partition
|
void |
testFilterSinglePartition()
Test filtering on table with single partition
|
void |
testGetConfigValue() |
void |
testListPartitionNames() |
void |
testListPartitions() |
void |
testNameMethods() |
void |
testPartition()
tests create table and partition and tries to drop the table without
droppping the partition
|
void |
testPartitionFilter()
Tests for list partition by filter functionality.
|
void |
testRenamePartition() |
void |
testSimpleTable() |
void |
testSimpleTypeApi() |
void |
testSynchronized()
|
void |
testTableDatabase() |
void |
testTableFilter() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
protected static HiveMetaStoreClient client
protected static HiveConf hiveConf
protected static Warehouse warehouse
protected static boolean isThriftClient
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void testNameMethods()
public void testPartition() throws java.lang.Exception
java.lang.Exception
public static void partitionTester(HiveMetaStoreClient client, HiveConf hiveConf) throws java.lang.Exception
java.lang.Exception
public void testListPartitions() throws java.lang.Throwable
java.lang.Throwable
public void testListPartitionNames() throws java.lang.Throwable
java.lang.Throwable
public void testDropTable() throws java.lang.Throwable
java.lang.Throwable
public void testAlterViewParititon() throws java.lang.Throwable
java.lang.Throwable
public void testAlterPartition() throws java.lang.Throwable
java.lang.Throwable
public void testRenamePartition() throws java.lang.Throwable
java.lang.Throwable
public void testDatabase() throws java.lang.Throwable
java.lang.Throwable
public void testDatabaseLocationWithPermissionProblems() throws java.lang.Exception
java.lang.Exception
public void testDatabaseLocation() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleTypeApi() throws java.lang.Exception
java.lang.Exception
public void testComplexTypeApi() throws java.lang.Exception
java.lang.Exception
public void testSimpleTable() throws java.lang.Exception
java.lang.Exception
public void testColumnStatistics() throws java.lang.Throwable
java.lang.Throwable
public void testAlterTable() throws java.lang.Exception
java.lang.Exception
public void testComplexTable() throws java.lang.Exception
java.lang.Exception
public void testTableDatabase() throws java.lang.Exception
java.lang.Exception
public void testGetConfigValue()
public void testPartitionFilter() throws java.lang.Exception
java.lang.Exception
public void testFilterSinglePartition() throws java.lang.Exception
java.lang.Exception
public void testFilterLastPartition() throws java.lang.Exception
java.lang.Exception
public void testSynchronized() throws java.lang.Exception
HiveMetaStoreClient.newSynchronizedClient(org.apache.hadoop.hive.metastore.IMetaStoreClient)
. Does not
actually test multithreading, but does verify that the proxy
at least works correctly.java.lang.Exception
public void testTableFilter() throws java.lang.Exception
java.lang.Exception
public void testConcurrentMetastores() throws java.lang.Exception
java.lang.Exception
Copyright © 2012 The Apache Software Foundation