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

Fixing list_schemas so that we stop trying to create schemas that exist #529

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Dec 8, 2023

Resolves #464

Description

The inclusion of the backticks was causing list_schemas to return only 'global_temp'. This meant that the precaution in dbt-core to not try to create schemas that already exist wasn't seeing the correct list of schemas.

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.

Copy link
Collaborator

@rcypher-databricks rcypher-databricks left a comment

Choose a reason for hiding this comment

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

Really nice catch here.

@benc-db benc-db merged commit bb4abb4 into main Dec 8, 2023
21 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.

Check if a schema exists before running "create schema if not exists"
2 participants