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

(fixes #1119) Ignore dependencies into dbt schemas from external schemas #1120

Merged
merged 2 commits into from
Nov 13, 2018

Conversation

drewbanin
Copy link
Contributor

fixes #1119 by checking the schema name of the downstream relation. If it is not in the list of schemas that dbt cares about, it is discarded.

@drewbanin drewbanin requested a review from beckjake November 13, 2018 19:48
self.cache.add_link(dependent, referenced)

# don't record in cache if this relation isn't in a relevant schema
if refed_schema in schemas:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@beckjake do you think we need to do a case-insensitive check here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it needs to be refed_schema.lower() in schemas.

@drewbanin drewbanin changed the base branch from 0.12.latest to dev/0.12.1 November 13, 2018 19:57
Copy link
Contributor

@beckjake beckjake left a comment

Choose a reason for hiding this comment

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

Great tests!

@abelsonlive
Copy link
Contributor

Thanks so much for quickly diagnosing and resolving this (obscure) issue!

@abelsonlive
Copy link
Contributor

Tested this branch with the same command and it works!

@drewbanin drewbanin merged commit 9398ccd into dev/0.12.1 Nov 13, 2018
@drewbanin drewbanin deleted the fix/do-not-cache-irrelevant-schemas branch November 13, 2018 21:19
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.

3 participants