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/19 12:30:17 UTC

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

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


##########
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:
   Does sqlType exist in standard debezium json? What shoud do if it is not exists?



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