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

fix(data-warehouse): Implemented upserts for incremental syncs #23850

Merged
merged 3 commits into from
Jul 24, 2024

Conversation

Gilbert09
Copy link
Member

Changes

  • Updated the DLT package with their latest alpha release. This includes upsert merges for delta tables, fixing our issue with duplicated data with incremental syncs

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Tested locally

@@ -71,7 +81,12 @@ def get_resource(name: str, is_incremental: bool) -> EndpointResource:
"name": "Customer",
"table_name": "customer",
"primary_key": "id",
"write_disposition": "merge" if is_incremental else "replace",
"write_disposition": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EDsCODE EDsCODE self-requested a review July 24, 2024 00:26
Copy link
Member

@EDsCODE EDsCODE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's give this a go. can address the schema specific incremental updates after

@Gilbert09 Gilbert09 merged commit 17b0c8f into master Jul 24, 2024
84 checks passed
@Gilbert09 Gilbert09 deleted the tom/dlt-delta-upserts branch July 24, 2024 12:14
silentninja pushed a commit to silentninja/posthog that referenced this pull request Aug 8, 2024
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

2 participants