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: use table as default type when building the catalog #241

Merged
merged 3 commits into from
Apr 19, 2023

Conversation

nicor88
Copy link
Contributor

@nicor88 nicor88 commented Apr 18, 2023

Description

This address this issue: #240
There are some edge cases when tables are created by api, where table type is not set, this pr uses a fallback to table in those cases, as it's the best assumption.

Models used to test - Optional

Checklist

  • You followed contributing section
  • You added unit testing when necessary
  • You added functional testing when necessary

Copy link
Contributor

@svdimchenko svdimchenko left a comment

Choose a reason for hiding this comment

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

Nice job done with extra tests! It seems that get_table_type should be fixed as well because it will fail now with an error
https://github.com/dbt-athena/dbt-athena/blob/284a078da64c83036993b527cf168c42ff02a6cc/dbt/adapters/athena/impl.py#L516

@nicor88 nicor88 merged commit 9700b37 into main Apr 19, 2023
@nicor88 nicor88 deleted the fix/catalog_table_type branch April 19, 2023 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants