-
Notifications
You must be signed in to change notification settings - Fork 510
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
remove list_relations call in materialization #84
Conversation
@@ -0,0 +1,16 @@ | |||
{{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do something hacky to get these tests to pass? Let's just not configure this model for Postgres, making it use the view
materialization instead
{{ | |
{% if target.type != 'postgres' %} | |
{{ | |
... | |
}} | |
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ I guess this fails during parsing? Boo. Might be worth just implementing that if/else
block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that the circlei script doesn't run the makefile, I just made the circle config match.
dbt run --target postgres | ||
dbt test --target postgres | ||
dbt run --target postgres --exclude test_insert_by_period | ||
dbt test --target postgres --exclude test_insert_by_period |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is a lot smarter than what i said
2be3f34
to
a58e1ca
Compare
a58e1ca
to
de24e58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The caching PR I wrote removes
list_relations
from the DBWrapper, so remove the explicit call from the materialization.This change is backwards compatible: Currently in the absence of a
relations_list
, the adapter code callslist_relations
on its own.