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: backup table would be deleted, even if it doesnt exist #562

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

octiva
Copy link
Contributor

@octiva octiva commented Jan 14, 2024

Description

Similar to my previous issue with the tmp tables being deleted even if they dont exist.

We check if the relation locally exists, which is always does, because we just created it.

Instead, we need to check if the backup table in the source system exists.

very similar changes too: #550

Models used to test - Optional

Checklist

  • You followed contributing section
  • You kept your Pull Request small and focused on a single feature or bug fix.
  • You added unit testing when necessary
  • You added functional testing when necessary

Copy link
Contributor

@nicor88 nicor88 left a comment

Choose a reason for hiding this comment

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

Nice catch 💯

@nicor88 nicor88 merged commit 3e64216 into dbt-labs:main Jan 15, 2024
11 checks passed
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.

3 participants