You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/10/20 02:58:55 UTC

[GitHub] [inlong] thesumery commented on a diff in pull request #6225: [INLONG-6214][Sort] Import schema and data parsing ability for DynamicSchemaFormat

thesumery commented on code in PR #6225:
URL: https://github.com/apache/inlong/pull/6225#discussion_r1000096769


##########
inlong-sort/sort-connectors/base/src/main/java/org/apache/inlong/sort/base/format/DebeziumJsonDynamicSchemaFormat.java:
##########
@@ -69,6 +81,49 @@ public List<String> extractPrimaryKeyNames(JsonNode data) {
         return pkNames;
     }
 
+    @Override
+    public boolean extractDDLFlag(JsonNode data) {
+        return data.has(DDL_FLAG) ? data.get(DDL_FLAG).asBoolean(false) : false;
+    }
+
+    @Override
+    public RowType extractSchema(JsonNode data, List<String> pkNames) {
+        JsonNode schema = data.get(SCHEMA);

Review Comment:
   there should be a scheam info for extract RowType



-- 
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-unsubscribe@inlong.apache.org

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