Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,10 @@ private static PipelineResult runWithBackfillFirst(Options options, String conne
.setFailureTag(UDF_FAILURE_TAG)
.build());

jsonRecords = udfResult.get(UDF_SUCCESS_TAG);
jsonRecords =
udfResult
.get(UDF_SUCCESS_TAG)
.setCoder(FailsafeElementCoder.of(StringUtf8Coder.of(), StringUtf8Coder.of()));

// Handle failed UDF processing
writeFailedJsonToDlq(options, udfResult, dlqManager, UDF_FAILURE_TAG);
Expand Down Expand Up @@ -723,7 +726,10 @@ private static PipelineResult runAllEventsTogether(Options options, String conne
.setFailureTag(UDF_FAILURE_TAG)
.build());

jsonRecords = udfResult.get(UDF_SUCCESS_TAG);
jsonRecords =
udfResult
.get(UDF_SUCCESS_TAG)
.setCoder(FailsafeElementCoder.of(StringUtf8Coder.of(), StringUtf8Coder.of()));

// Handle failed UDF processing
writeFailedJsonToDlq(options, udfResult, dlqManager, UDF_FAILURE_TAG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public CreateMongoDbChangeEventContextFn(String shadowCollectionPrefix) {
public void processElement(ProcessContext context, MultiOutputReceiver out) {
FailsafeElement<String, String> element = context.element();
try {
JsonNode jsonNode = OBJECT_MAPPER.readTree(element.getOriginalPayload());
JsonNode jsonNode = OBJECT_MAPPER.readTree(element.getPayload());
MongoDbChangeEventContext changeEventContext =
new MongoDbChangeEventContext(jsonNode, shadowCollectionPrefix);
out.get(successfulCreationTag).output(changeEventContext);
Expand Down
Loading