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
Set up OpenSearch Ingestion pipeline with S3 source, newline code and parse_json processor.
Specify action: "upsert" for OpenSearch sink
Add a file to S3 with 1 JSON document per new line.
Check data prepper logs in Cloudwatch
Expected behavior
JSON documents provided in source S3 file should be ingested in OpenSearch as expected.
Screenshots
N/A
Environment (please complete the following information):
Amazon OpenSearch Ingestion Service
Additional context Possible root cause:
I did a deep dive in the github library and came across this commit where the functionality was added. I see it uses UpdateOperation here to create requests to be added to bulkOperation. This might not be the correct approach as OpenSearch _bulk API expects doc_as_upsert as true for using Upsert with Update in bulk (Doc ref). I see that this is also supported in the opensearch-java library used by data prepper (ref).
The text was updated successfully, but these errors were encountered:
Describe the bug
My sink configuration is specified as:
However, when it gets documents with a new
opportunity_id
value, it throwsTo Reproduce
Steps to reproduce the behavior:
action: "upsert"
for OpenSearch sinkExpected behavior
JSON documents provided in source S3 file should be ingested in OpenSearch as expected.
Screenshots
N/A
Environment (please complete the following information):
Additional context
Possible root cause:
I did a deep dive in the github library and came across this commit where the functionality was added. I see it uses UpdateOperation here to create requests to be added to bulkOperation. This might not be the correct approach as OpenSearch _bulk API expects doc_as_upsert as true for using Upsert with Update in bulk (Doc ref). I see that this is also supported in the opensearch-java library used by data prepper (ref).
The text was updated successfully, but these errors were encountered: