dengzhhu653 commented on code in PR #4820:
URL: https://github.com/apache/hive/pull/4820#discussion_r1371064470
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/TableHandler.java:
##########
@@ -113,9 +114,16 @@ private Tuple extract(Context context) throws
SemanticException {
writeId = alterTableMessage.getWriteId();
break;
case EVENT_ALTER_PARTITION:
- AlterPartitionMessage msg =
deserializer.getAlterPartitionMessage(context.dmd.getPayload());
- tableType = msg.getTableObj().getTableType();
- writeId = msg.getWriteId();
+ try {
+ AlterPartitionMessage msg =
deserializer.getAlterPartitionMessage(context.dmd.getPayload());
+ tableType = msg.getTableObj().getTableType();
+ writeId = msg.getWriteId();
+ } catch (Exception e) {
Review Comment:
I was thinking introduce another DumpType(EVENT_ALTER_PARTITIONS), it was a
bit risky as I don't find where the Repl load consumes such type, so I would
prefer using the old DumpType `EVENT_ALTER_PARTITION`.
From the `context.dmd.getPayload()`, an idea is to inspect the json message
to detect the event type, but it looks difficult when the message is Gzip
compressed.
--
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]