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: avoid deleting S3 location because listing relations continues on error #629

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

hiro-o918
Copy link
Contributor

Description

list_relations_without_caching continues even when an error occurs when paginating tables.
As a result, this function returns relations before collecting all the tables in a Glue database.
To avoid this, build full pagination before collecting tables in the loop.
Also, catch more precise errors about ClientException.

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

@nicor88 nicor88 added the enable-functional-tests Label to trigger functional testing label Apr 24, 2024
Copy link
Member

@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.

@hiro-o918 hiro-o918 requested a review from nicor88 April 24, 2024 15:34
@nicor88 nicor88 merged commit 9f5361d into dbt-athena:main Apr 25, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enable-functional-tests Label to trigger functional testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants