-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
id,created_at | ||
1,2017-12-02 | ||
2,2018-01-02 | ||
3,2018-02-02 | ||
4,2018-03-02 | ||
5,2018-04-02 | ||
6,2018-05-02 | ||
7,2018-06-02 | ||
8,2018-07-02 | ||
9,2018-08-02 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{ | ||
config( | ||
materialized = 'view') | ||
}} | ||
|
||
select * | ||
from {{ ref('data_insert_by_period') }} | ||
where id in (2, 3, 4, 5, 6) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test_insert_by_period: | ||
constraints: | ||
dbt_utils.equality: | ||
- ref('expected_insert_by_period') |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,16 @@ | ||||||||||||||
{{ | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||||||||||||||
config( | ||||||||||||||
materialized = 'insert_by_period', | ||||||||||||||
period = 'month', | ||||||||||||||
timestamp_field = 'created_at', | ||||||||||||||
start_date = '2018-01-01', | ||||||||||||||
stop_date = '2018-06-01') | ||||||||||||||
}} | ||||||||||||||
|
||||||||||||||
with events as ( | ||||||||||||||
select * | ||||||||||||||
from {{ ref('data_insert_by_period') }} | ||||||||||||||
where __PERIOD_FILTER__ | ||||||||||||||
) | ||||||||||||||
|
||||||||||||||
select * from events |
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