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<>());
}
Aggregations