Search in sources :

Example 16 with PartitionsByExprRequest

use of org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest in project hive by apache.

the class TestSessionHiveMetastoreClientListPartitionsTempTable method testListPartitionsSpecByExprEmptyDbName.

@Test(expected = NoSuchObjectException.class)
public void testListPartitionsSpecByExprEmptyDbName() throws Exception {
    PartitionsByExprRequest req = new PartitionsByExprRequest("", TABLE_NAME, ByteBuffer.wrap(new byte[] { 'f', 'o', 'o' }));
    req.setMaxParts((short) -1);
    getClient().listPartitionsSpecByExpr(req, new ArrayList<>());
}
Also used : PartitionsByExprRequest(org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest) Test(org.junit.Test) MetastoreCheckinTest(org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest)

Aggregations

PartitionsByExprRequest (org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest)16 MetastoreCheckinTest (org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest)9 Test (org.junit.Test)9 ArrayList (java.util.ArrayList)6 PartitionSpec (org.apache.hadoop.hive.metastore.api.PartitionSpec)5 Table (org.apache.hadoop.hive.metastore.api.Table)5 TestMetastoreExpr (org.apache.hadoop.hive.metastore.TestMetastoreExpr)3 Partition (org.apache.hadoop.hive.metastore.api.Partition)3 ValidWriteIdList (org.apache.hadoop.hive.common.ValidWriteIdList)2 MetaException (org.apache.hadoop.hive.metastore.api.MetaException)2 NoSuchObjectException (org.apache.hadoop.hive.metastore.api.NoSuchObjectException)2 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 UnknownHostException (java.net.UnknownHostException)1 ExecutionException (java.util.concurrent.ExecutionException)1 JDODataStoreException (javax.jdo.JDODataStoreException)1 HiveMetaException (org.apache.hadoop.hive.metastore.HiveMetaException)1 AlreadyExistsException (org.apache.hadoop.hive.metastore.api.AlreadyExistsException)1 DropPartitionsExpr (org.apache.hadoop.hive.metastore.api.DropPartitionsExpr)1 DropPartitionsResult (org.apache.hadoop.hive.metastore.api.DropPartitionsResult)1