Skip to content

Add Scripted Upsert Functionality - #759

Open
Nicholas Cole (NicholasDCole) wants to merge 1 commit into
confluentinc:masterfrom
NicholasDCole:feature/Scripted_Upsert
Open

Add Scripted Upsert Functionality#759
Nicholas Cole (NicholasDCole) wants to merge 1 commit into
confluentinc:masterfrom
NicholasDCole:feature/Scripted_Upsert

Conversation

@NicholasDCole

@NicholasDCole Nicholas Cole (NicholasDCole) commented Mar 8, 2024

Copy link
Copy Markdown

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
Nicholas Cole (NicholasDCole) requested a review from a team as a code owner March 8, 2024 23:24
@cla-assistant

cla-assistant Bot commented Mar 8, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@NicholasDCole Nicholas Cole (NicholasDCole) changed the title Initial Changes Draft: Add Scripted Upsert Functionality Mar 8, 2024
@NicholasDCole
Nicholas Cole (NicholasDCole) marked this pull request as draft March 8, 2024 23:25
@NicholasDCole Nicholas Cole (NicholasDCole) changed the title Draft: Add Scripted Upsert Functionality Add Scripted Upsert Functionality Mar 8, 2024
Nicholas Cole (NicholasDCole) added a commit to NicholasDCole/kafka-connect-elasticsearch that referenced this pull request Mar 11, 2024
Nicholas Cole (NicholasDCole) added a commit to NicholasDCole/kafka-connect-elasticsearch that referenced this pull request Mar 12, 2024
Signed-off-by: Nicholas Cole <nicholas.cole@walmart.com>
Add Kafka Payload -> Injection as Parameters functionality

Signed-off-by: Nicholas Cole <nicholas.cole@walmart.com>
@NicholasDCole
Nicholas Cole (NicholasDCole) marked this pull request as ready for review March 12, 2024 19:42
@NicholasDCole

Copy link
Copy Markdown
Author

1 similar comment
@NicholasDCole

Copy link
Copy Markdown
Author

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