Skip to content

Commit e23b6ea

Browse files
authored
(DOCSP-52910) Fix $emit docs (#14081)
1 parent 7b59b11 commit e23b6ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/atlas/source/atlas-stream-processing/sp-agg-emit.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pipeline stage with the following prototype form:
5757
"dateFormat": "default" | "ISO8601",
5858
"headers": "<expression>",
5959
"key": "<key-string>" | { key-document },
60-
"keyFormat": "<deserialization-type>",
60+
"keyFormat": "<serialization-type>",
6161
"outputFormat": "<json-format>",
6262
"tombstoneWhen": <expression>
6363
}
@@ -139,15 +139,15 @@ The ``$emit`` stage takes a document with the following fields:
139139

140140
{ "flightTime" : ISODate('2025-01-10T20:17:38.387Z') }
141141

142-
If ``$emit.config.defaultFormat`` is set to ``default``,
142+
If ``$emit.config.dateFormat`` is set to ``default``,
143143
output looks similar to the following:
144144

145145
.. code-block:: shell
146146
:copyable: false
147147

148148
{ "flightTime" : {$date :"2025-01-10T20:17:38.387Z"}}
149149

150-
If ``$emit.config.defaultFormat`` is set to ``ISO8601``,
150+
If ``$emit.config.dateFormat`` is set to ``ISO8601``,
151151
output looks similar to the following:
152152

153153
.. code-block:: shell
@@ -199,7 +199,7 @@ The ``$emit`` stage takes a document with the following fields:
199199
* - ``config.keyFormat``
200200
- string
201201
- Conditional
202-
- Data type used to deserialize {+kafka+} key data. Must be one
202+
- Data type used to serialize {+kafka+} key data. Must be one
203203
of the following values:
204204

205205
- ``"binData"``
@@ -210,7 +210,7 @@ The ``$emit`` stage takes a document with the following fields:
210210

211211
Defaults to ``binData``. If you specify ``config.key``, you
212212
must specify ``config.keyFormat``. If the ``config.key`` of a
213-
document does not deserialize successfully to the specified
213+
document does not serialize successfully to the specified
214214
data type, {+atlas-sp+} sends it to your :ref:`dead letter
215215
queue <atlas-sp-dlq>`.
216216

@@ -486,15 +486,15 @@ The ``$emit`` stage takes a document with the following fields:
486486

487487
{ "flightTime" : ISODate('2025-01-10T20:17:38.387Z') }
488488

489-
then if ``$emit.config.defaultFormat`` is set to ``default``,
489+
then if ``$emit.config.dateFormat`` is set to ``default``,
490490
output looks similar to the following:
491491

492492
.. code-block:: shell
493493
:copyable: false
494494

495495
{ "flightTime" : {$date :"2025-01-10T20:17:38.387Z"}}
496496

497-
If ``$emit.config.defaultFormat`` is set to ``ISO8601``,
497+
If ``$emit.config.dateFormat`` is set to ``ISO8601``,
498498
output looks similar to the following:
499499

500500
.. code-block:: shell

0 commit comments

Comments
 (0)