Yizhou-Yang commented on code in PR #7924:
URL: https://github.com/apache/inlong/pull/7924#discussion_r1185687301


##########
inlong-sort/sort-connectors/kafka/src/main/java/org/apache/inlong/sort/kafka/partitioner/PrimaryKeyPartitioner.java:
##########


Review Comment:
   Hi! The rawdatahashpartitioner was based on data serialized using 
canal/debezium data and are deserialized using corresponding JsonDynamicFormat. 
However, the PrimaryKeyPartitioner is used primarily to support csv/avro/json 
format in addition to canal/debezium, which does not have JsonDynamicFormat and 
need not to be parsed. If we use RawDataHashPartitioner, there will be Null 
Pointer Exceptions from the missing JsonDynamicFormat.



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