yunqingmoswu commented on code in PR #7062:
URL: https://github.com/apache/inlong/pull/7062#discussion_r1058690888


##########
inlong-sort/sort-connectors/doris/src/main/java/org/apache/inlong/sort/doris/table/DorisDynamicSchemaOutputFormat.java:
##########
@@ -503,6 +512,42 @@ private void handleDirtyData(Object dirtyData, DirtyType 
dirtyType, Exception e)
                 LOG.warn("Dirty sink failed", ex);
             }
         }
+        metricData.invokeDirty(1, 
dirtyData.toString().getBytes(StandardCharsets.UTF_8).length);
+    }
+
+    private void handleMultipleDirtyData(Object dirtyData, DirtyType 
dirtyType, Exception e) {
+        JsonNode rootNode = null;
+        try {
+            rootNode = jsonDynamicSchemaFormat.deserialize(((RowData) 
dirtyData).getBinary(0));
+        } catch (Exception ex) {
+            LOG.warn("handle dirty data: rootnode is null", ex);

Review Comment:
   It is needed to sink dirty data



-- 
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: commits-unsubscr...@inlong.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to