Skip to content

fix: check for old tmp table before deleting it #550

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

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

octiva
Copy link
Contributor

@octiva octiva commented Jan 1, 2024

Description

Implemented as discussed in #546.

Uses adapter.get_relation to search for an old tmp_relation that could exist if the previous table creation did not clean it up properly.

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

@octiva octiva force-pushed the fine-grain-permissions-bug branch 2 times, most recently from 39b10d0 to 7da1c6d Compare January 2, 2024 09:10
@nicor88
Copy link
Contributor

nicor88 commented Jan 2, 2024

@octiva Could you double check if we need to adapt also anything in the incremental part? maybe we can benefit for the same approach too, that seems more resilient and correct.

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.

Thanks for this improvement @octiva 💯

@svdimchenko / @Jrmyy could you have another look?

@octiva octiva force-pushed the fine-grain-permissions-bug branch from 62d6801 to 38937bf Compare January 2, 2024 20:04
@octiva octiva requested a review from nicor88 January 2, 2024 23:19
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.

Thanks for your contribution @octiva

@nicor88 nicor88 merged commit d4c9ca8 into dbt-labs:main Jan 3, 2024
@spencer-horton-wcq
Copy link
Contributor

Happy to contribute!

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.

4 participants