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

[destination-motherduck] append batch tmp table instead replace during override #50425

Merged
merged 6 commits into from
Dec 26, 2024

Conversation

marcosmarxm
Copy link
Member

@marcosmarxm marcosmarxm commented Dec 26, 2024

What

If your data exceeds 50k, the Motherduck destination will override the previous temporary table with the new batch. Since the logic involves dropping and cleaning the table first, we can apply the same logic as appending because the table is empty.

How

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Dec 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 7:37pm

Copy link
Contributor

@guenp guenp left a comment

Choose a reason for hiding this comment

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

Should we add a test that reproduces the issue as well (both for the 50k rows case and <50k rows)?

@marcosmarxm
Copy link
Member Author

marcosmarxm commented Dec 26, 2024

/format-fix

Format-fix job started... Check job output.

✅ Changes applied successfully. (b4edc4b)

Copy link
Collaborator

@aaronsteers aaronsteers left a comment

Choose a reason for hiding this comment

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

Changes look good! Great job with the quick turnaround for this fix, @marcosmarxm!

@marcosmarxm marcosmarxm merged commit c519289 into master Dec 26, 2024
31 checks passed
@marcosmarxm marcosmarxm deleted the marcos/motherduck-override-bug branch December 26, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/destination/motherduck
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants