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 get_columns_in_relation on snowflake (#2504) #2509

Merged

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Jun 1, 2020

Also add a test for adapter methods to catch this if it regresses

resolves #2504

Description

This was a regression caused by using describe table ... instead of selecting from the information schema, and not catching the exception when that happened on a missing table. Previously, and on all other adapters, this results in an empty list.

This is pretty straightforward, we've done it plenty of other places.

Checklist

  • I have signed the CLA
  • 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 next" section.

Also add a test for adapter methods to catch this if it regresses
@beckjake beckjake requested review from drewbanin and kwigley June 1, 2020 16:31
@cla-bot cla-bot bot added the cla:yes label Jun 1, 2020
@beckjake beckjake changed the title fix get_columns_in_relation on snowflake fix get_columns_in_relation on snowflake (#2504) Jun 1, 2020
Copy link
Contributor

@kwigley kwigley left a comment

Choose a reason for hiding this comment

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

Looks good !

@beckjake beckjake merged commit 6fbf672 into dev/octavius-catto Jun 2, 2020
@beckjake beckjake deleted the fix/snowflake-get-columns-missing-relation branch June 2, 2020 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants