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

Avoid describe extended on hive_metastore #446

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Sep 12, 2023

Resolves #442

Description

As of 1.6.0, we added logic to determine Streaming Tables from normal Tables using describe extended if the type isn't returned. There's no reason to do this on hive, which also unfortunately does not return the type when you ask it to show tables. This PR says that if an object was returned by show tables, and the database (catalog) is none or hive_metastore, return the type table without calling describe extended.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@benc-db benc-db temporarily deployed to azure-prod September 12, 2023 21:59 — with GitHub Actions Inactive
@benc-db benc-db temporarily deployed to azure-prod September 12, 2023 21:59 — with GitHub Actions Inactive
@benc-db benc-db temporarily deployed to azure-prod September 12, 2023 21:59 — with GitHub Actions Inactive
@benc-db benc-db marked this pull request as ready for review September 12, 2023 22:28
@benc-db benc-db merged commit 74c3ac7 into main Sep 12, 2023
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.

dbt-databricks 1.6.X overeager introspection (describe extended ...) of all tables in schema
2 participants