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
@@ -60,10 +62,10 @@ The {+mkc+} provides two default schemas:
60
62
- :ref:`A key schema for the _id field of MongoDB change event documents. <source-default-key-schema>`
61
63
- :ref:`A value schema for MongoDB change event documents. <source-default-value-schema>`
62
64
63
-
To learn more about change events, see our
65
+
To learn more about change events, see our
64
66
:doc:`guide on change streams </source-connector/fundamentals/change-streams>`.
65
67
66
-
To learn more about default schemas, see the default schemas
68
+
To learn more about default schemas, see the default schemas
67
69
:github:`here in the MongoDB Kafka Connector source code <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/source/schema/AvroSchemaDefaults.java>`.
68
70
69
71
.. _source-default-key-schema:
@@ -73,16 +75,16 @@ Key Schema
73
75
74
76
The {+mkc+} provides a default key schema for the ``_id`` field of change
75
77
event documents. You should use the default key schema unless you remove the
76
-
``_id`` field from your change event document using either of the transformations
77
-
:ref:`described in this guide here <source-schema-for-modified-document>`.
78
+
``_id`` field from your change event document using either of the transformations
79
+
:ref:`described in this guide here <source-schema-for-modified-document>`.
78
80
79
81
If you specify either of these transformations and would like to use a key
80
82
schema for your incoming documents, you must specify a key schema
81
-
:ref:`as described in the specify a schema section of this guide <source-specify-avro-schema>`.
83
+
:ref:`as described in the specify a schema section of this guide <source-specify-avro-schema>`.
82
84
83
-
You can enable the default key schema with the following option:
85
+
You can enable the default key schema with the following option:
84
86
85
-
.. code-block:: java
87
+
.. code-block:: java
86
88
87
89
output.format.key=schema
88
90
@@ -93,16 +95,16 @@ Value Schema
93
95
94
96
The {+mkc+} provides a default value schema for change event documents. You
95
97
should use the default value schema unless you transform your change event
96
-
documents
97
-
:ref:`as described in this guide here <source-schema-for-modified-document>`.
98
+
documents
99
+
:ref:`as described in this guide here <source-schema-for-modified-document>`.
98
100
99
101
If you specify either of these transformations and would like to use a value schema for your
100
-
incoming documents, you must use one of the mechanisms described in the
101
-
:ref:`schemas for transformed documents section of this guide <source-schema-for-modified-document>`.
102
+
incoming documents, you must use one of the mechanisms described in the
103
+
:ref:`schemas for transformed documents section of this guide <source-schema-for-modified-document>`.
102
104
103
-
You can enable the default value schema with the following option:
105
+
You can enable the default value schema with the following option:
104
106
105
-
.. code-block:: properties
107
+
.. code-block:: properties
106
108
107
109
output.format.value=schema
108
110
@@ -115,7 +117,7 @@ There are two ways you can transform your change event documents in a
115
117
source connector:
116
118
117
119
- The ``publish.full.document.only=true`` option
118
-
- An aggregation pipeline that modifies the structure of change event documents
120
+
- An aggregation pipeline that modifies the structure of change event documents
119
121
120
122
If you transform your MongoDB change event documents,
121
123
you must do the following to apply schemas:
@@ -164,7 +166,7 @@ Infer a Schema
164
166
165
167
You can have your source connector infer a schema for incoming documents. This
166
168
option works well for development and for data sources that do not
167
-
frequently change structure, but for most production deployments we recommend that you
169
+
frequently change structure, but for most production deployments we recommend that you
168
170
:ref:`specify a schema <source-specify-avro-schema>`.
169
171
170
172
You can have the MongoDB Kafka Connector infer a schema by specifying the
@@ -179,8 +181,8 @@ following options:
179
181
180
182
The {+mkc+} does not support key schema inference. If you want to use a key
181
183
schema and transform your MongoDB change event documents, you must specify a
182
-
key schema as described in
183
-
:ref:`the specify schemas section of this guide <source-specify-avro-schema>`.
184
+
key schema as described in
185
+
:ref:`the specify schemas section of this guide <source-specify-avro-schema>`.
0 commit comments