dengzhhu653 commented on code in PR #4820:
URL: https://github.com/apache/hive/pull/4820#discussion_r1371078988


##########
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:
   There is a `deSerializeGenericString` function to decompress the string, I 
try to inspect the json message to get the type.



-- 
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]

Reply via email to