You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/cdc-ingestion/debezium-bson.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ bson-*.jar
47
47
{{< hint info >}}
48
48
The debezium bson format requires insert/update/delete event messages include the full document, and include a field that represents the state of the document before the change.
49
49
This requires setting debezium's capture.mode to change_streams_update_full_with_pre_image and [capture.mode.full.update.type](https://debezium.io/documentation/reference/stable/connectors/mongodb.html#mongodb-property-capture-mode-full-update-type) to post_image.
50
-
The database must be running **MongoDB 6.0 or later**to use this option.
50
+
Before version 6.0 of MongoDB, it was not possible to obtain 'Update Before' information. Therefore, using the id field in the Kafka Key as 'Update before' information
51
51
{{< /hint >}}
52
52
53
53
Here is a simple example for an update operation captured from a Mongodb customers collection in JSON format:
@@ -145,7 +145,7 @@ Below is a list of top-level field BsonValue conversion examples:
145
145
<td>
146
146
<ul>
147
147
<li>1735934393769</li>
148
-
<li>{"$numberLong": 1735934393769}</li>
148
+
<li>{"$numberLong": "1735934393769"}</li>
149
149
</ul>
150
150
</td>
151
151
<td>"1735934393769"</td>
@@ -186,7 +186,7 @@ Below is a list of top-level field BsonValue conversion examples:
Copy file name to clipboardExpand all lines: paimon-flink/paimon-flink-cdc/src/main/java/org/apache/paimon/flink/action/cdc/format/debezium/DebeziumBsonRecordParser.java
Copy file name to clipboardExpand all lines: paimon-flink/paimon-flink-cdc/src/main/java/org/apache/paimon/flink/action/cdc/kafka/KafkaDebeziumJsonDeserializationSchema.java
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,14 @@ public CdcSourceRecord deserialize(ConsumerRecord<byte[], byte[]> message) throw
0 commit comments