hailin0 commented on code in PR #8724:
URL: https://github.com/apache/seatunnel/pull/8724#discussion_r1967013733


##########
seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/sink/KafkaSinkWriter.java:
##########
@@ -170,18 +170,22 @@ private Properties getKafkaProperties(ReadonlyConfig 
pluginConfig) {
     private SeaTunnelRowSerializer<byte[], byte[]> getSerializer(
             ReadonlyConfig pluginConfig, SeaTunnelRowType seaTunnelRowType) {
         MessageFormat messageFormat = pluginConfig.get(FORMAT);
+        String topic = pluginConfig.get(TOPIC);
+        if (MessageFormat.NATIVE.equals(messageFormat)) {
+            return DefaultSeaTunnelRowSerializer.create(topic, messageFormat, 
seaTunnelRowType);

Review Comment:
   check input fields & types when sink init



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