Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Scripted Upsert Functionality #759

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NicholasDCole
Copy link

@NicholasDCole NicholasDCole commented Mar 8, 2024

Problem

Scripted Upserts are not currently possible inside of the Update Request sent to ElasticSearch

Also, the Kafka Payload is always sent in as either doc or upsert.

Solution

Add SCRIPTED_UPSERT write.method and custom logic in DataConverter.java to handle parameter injection as well as script injection into ES UpdateRequest

Does this solution apply anywhere else?
  • yes
  • no
If yes, where?

Test Strategy

Testing done:
  • Unit tests
  • Integration tests
  • System tests
  • Manual tests

Release Plan

@NicholasDCole NicholasDCole requested a review from a team as a code owner March 8, 2024 23:24
Copy link

cla-assistant bot commented Mar 8, 2024

CLA assistant check
All committers have signed the CLA.

@NicholasDCole NicholasDCole changed the title Initial Changes Draft: Add Scripted Upsert Functionality Mar 8, 2024
@NicholasDCole NicholasDCole marked this pull request as draft March 8, 2024 23:25
@NicholasDCole NicholasDCole changed the title Draft: Add Scripted Upsert Functionality Add Scripted Upsert Functionality Mar 8, 2024
NicholasDCole added a commit to NicholasDCole/kafka-connect-elasticsearch that referenced this pull request Mar 11, 2024
NicholasDCole added a commit to NicholasDCole/kafka-connect-elasticsearch that referenced this pull request Mar 12, 2024
Add Kafka Payload -> Injection as Parameters functionality

Signed-off-by: Nicholas Cole <[email protected]>
@NicholasDCole NicholasDCole marked this pull request as ready for review March 12, 2024 19:42
@NicholasDCole
Copy link
Author

Please review @sp-gupta @kkonstantine @snehashisp

1 similar comment
@NicholasDCole
Copy link
Author

Please review @sp-gupta @kkonstantine @snehashisp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant