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

Hudi Sink Connector Upsert records #448

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

oneebhkhan
Copy link
Contributor

Motivation

The Hudi Sink Connector currently only inserts record to the Hudi Table, I would like the sink connector to also be able to upsert records to the Hudi table.

Modifications

Provided a flag for the Hudi sink connector hoodieUpsertRecords in the sink connector configs, which if set to True uses the upsertPreppedRecords instead of bulkInsertPreppedRecords in the BufferedConnectWriter.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes) lakehouse-sink has been updated to reflect the new config

@oneebhkhan oneebhkhan requested a review from a team as a code owner November 2, 2023 16:08
@oneebhkhan
Copy link
Contributor Author

@hangc0276 @horizonzy can you please review this?

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.

None yet

1 participant