Search in sources :

Example 11 with WriteEventInfo

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

the class TestGetAllWriteEventInfo method testGetByWrongTxnId.

@Test
public void testGetByWrongTxnId() throws Exception {
    GetAllWriteEventInfoRequest req = new GetAllWriteEventInfoRequest();
    req.setTxnId(-1);
    List<WriteEventInfo> writeEventInfoList = client.getAllWriteEventInfo(req);
    Assert.assertTrue(writeEventInfoList.isEmpty());
}
Also used : GetAllWriteEventInfoRequest(org.apache.hadoop.hive.metastore.api.GetAllWriteEventInfoRequest) WriteEventInfo(org.apache.hadoop.hive.metastore.api.WriteEventInfo) Test(org.junit.Test) MetastoreCheckinTest(org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest)

Aggregations

WriteEventInfo (org.apache.hadoop.hive.metastore.api.WriteEventInfo)11 GetAllWriteEventInfoRequest (org.apache.hadoop.hive.metastore.api.GetAllWriteEventInfoRequest)6 MetastoreCheckinTest (org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest)5 Test (org.junit.Test)5 ArrayList (java.util.ArrayList)4 List (java.util.List)3 Path (org.apache.hadoop.fs.Path)2 MetaException (org.apache.hadoop.hive.metastore.api.MetaException)2 CommitTxnMessage (org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage)2 Partition (org.apache.hadoop.hive.ql.metadata.Partition)2 Table (org.apache.hadoop.hive.ql.metadata.Table)2 SemanticException (org.apache.hadoop.hive.ql.parse.SemanticException)2 DumpMetaData (org.apache.hadoop.hive.ql.parse.repl.load.DumpMetaData)2 Collections2 (com.google.common.collect.Collections2)1 Lists (com.google.common.collect.Lists)1 File (java.io.File)1 IOException (java.io.IOException)1 Connection (java.sql.Connection)1 PreparedStatement (java.sql.PreparedStatement)1 ResultSet (java.sql.ResultSet)1