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

Snowflake: get_tables_by_pattern_sql handling external tables #351

Merged

Conversation

upjohnc
Copy link
Contributor

@upjohnc upjohnc commented Apr 6, 2021

This is a:

  • bug fix PR with no breaking changes — please ensure the base branch is master
  • new functionality — please ensure the base branch is the latest dev/ branch
  • a breaking change — please ensure the base branch is the latest dev/ branch

Description & motivation

Adding handling of snowflake external tables in get_tables_by_pattern_sql

Checklist

  • I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)
    • BigQuery
    • Postgres
    • Redshift
    • Snowflake
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)
  • I have added an entry to CHANGELOG.md

Linked Issue

I don't seem to have access to link this pr to the issue

issue url

haf and others added 2 commits March 15, 2021 16:34
* Update README.md

* Update README.md

Co-authored-by: Jeremy Cohen <[email protected]>

* Update README.md

Co-authored-by: Jeremy Cohen <[email protected]>

* Update README.md

* Update README.md

Co-authored-by: Jeremy Cohen <[email protected]>
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

Looking good @upjohnc! I gave a few minutes' thought to integration-testing this, and it's a bit tricky, so I'm going to say that your + my end-user testing is sufficient.

I left one comment. Could you also add a changelog entry, under a new section for dbt-utils v0.6.5?

macros/sql/get_tables_by_pattern_sql.sql Show resolved Hide resolved
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

LGTM!

@clrcrl I imagined this going into a bugfix/patch release in the v0.6 family, ahead of breaking changes in v0.7.0 (which perhaps we might associate with dbt v0.20.0?). Ultimately your call!

@clrcrl
Copy link
Contributor

clrcrl commented Apr 16, 2021

I'm going to switch this out to dev/0.7.0 since I want to get a release out in the next week or so! We'll have to 0.8.0 when dbt 0.20.0 comes out

@clrcrl clrcrl changed the base branch from master to dev/0.7.0 April 16, 2021 18:26
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.

4 participants