rkirtir commented on code in PR #4497:
URL: https://github.com/apache/hive/pull/4497#discussion_r1268929856
##########
itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java:
##########
@@ -1584,69 +1510,39 @@ public void sqlInsertPartition() throws Exception {
event = rsp.getEvents().get(12);
assertEquals(firstEventId + 13, event.getEventId());
- assertEquals(EventType.ADD_PARTITION.toString(), event.getEventType());
+ assertEquals(EventType.INSERT.toString(), event.getEventType());
event = rsp.getEvents().get(13);
assertEquals(firstEventId + 14, event.getEventId());
- assertEquals(EventType.INSERT.toString(), event.getEventType());
- // Parse the message field
- verifyInsert(event, null, tblName);
+ assertEquals(EventType.ALTER_PARTITION.toString(), event.getEventType());
Review Comment:
There are only 29 total events generated and which are correct based on sql
commands used in tests. With UPDATE_PARTITION_COLUMN_STAT event event flow is
different. So I have tested assertion for total 29 events and removed
unnecessary code
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]