lordcheng10 commented on code in PR #8144:
URL: https://github.com/apache/inlong/pull/8144#discussion_r1217520379


##########
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/kafka/src/main/java/org/apache/inlong/sort/kafka/DynamicKafkaSerializationSchema.java:
##########
@@ -287,6 +297,26 @@ private void serializeWithDirtyHandle(Map<String, Object> 
baseMap, JsonNode root
         }
     }
 
+    public Set<SchemaChangeType> extractSchemaChangeType(JsonNode rootNode) {
+        Operation operation;
+        try {
+            JsonNode operationNode = 
Preconditions.checkNotNull(rootNode.get("operation"),
+                    "Operation node is null");
+            operation = Preconditions.checkNotNull(
+                    
jsonDynamicSchemaFormat.objectMapper.convertValue(operationNode, new 
TypeReference<Operation>() {
+                    }), "Operation is null");
+        } catch (Exception e) {
+            LOG.warn("Extract Operation from origin data failed", e);

Review Comment:
   Fixed



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

Reply via email to