hailin0 commented on code in PR #8724:
URL: https://github.com/apache/seatunnel/pull/8724#discussion_r1955845998
##########
docs/en/connector-v2/source/Kafka.md:
##########
@@ -368,3 +369,27 @@ source {
}
}
```
+
+
+### is_native
+Supports retaining the source information of the record,such as
partition,timestamp.
+
+example:
+```hocon
+source {
+ Kafka {
+ is_native = true
+ topic = "test_topic"
+ bootstrap.servers = "kafkaCluster:9092"
+ kafka.config = {
+ client.id = client_1
+ max.poll.records = 500
+ auto.offset.reset = "earliest"
+ enable.auto.commit = "false"
+ }
+ format = "COMPATIBLE_KAFKA_CONNECT_JSON"
Review Comment:
Add `NATIVE` into MessageFormat
https://github.com/apache/seatunnel/blob/dev/seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/config/MessageFormat.java#L30
--
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]