Skip to content

Commit a4b3969

Browse files
Update src/connections/functions/insert-functions.md
Co-authored-by: forstisabella <92472883+forstisabella@users.noreply.github.com>
1 parent 9a733c0 commit a4b3969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connections/functions/insert-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Segment collects the events over a short period of time and combines them into a
289289

290290
To create a batch handler, define an `onBatch` function within your destination insert function. You can also use the "Default Batch" template found in the Functions editor to get started quickly.
291291

292-
**However**, Segment's function invoker service relies on positional consistency between the input and output arrays when using the `onBatch` handler. When a function returns a transformed batch, Segment pairs each output event with its corresponding input using array index positionsnot event IDs or timestamps. Consumers must preserve the original order in their `onBatch` implementation.
292+
You must preserve the original order in the `onBatch` implementation, as Segment's function invoker service relies on positional consistency in the `onBatch` handler between the input and output arrays. When a function returns a transformed batch, Segment pairs each output event with its corresponding input using array index positions, not event IDs or timestamps.
293293

294294
```js
295295
async function onBatch(events, settings){

0 commit comments

Comments
 (0)