-
Notifications
You must be signed in to change notification settings - Fork 96
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
Time Spine Source Node #1543
Time Spine Source Node #1543
Conversation
This is a huge commit but it's all just snapshot description changes. There are only three files with changed logic.
dcd97f6
to
a517f46
Compare
, subq_18.bookers AS bookers | ||
FROM ***************************.mf_time_spine subq_20 | ||
DATE_TRUNC('month', time_spine_src_28006.ds) AS booking__ds__month | ||
, DATE_TRUNC('week', time_spine_src_28006.ds) AS metric_time__week |
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.
why did this column order change?
SELECT | ||
martian_day AS metric_time__martian_day | ||
FROM ***************************.mf_time_spine subq_14 | ||
subq_16.martian_day AS metric_time__martian_day |
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.
noooope lol fixing this might have to do with multiple time spines?
) subq_17 | ||
FROM ***************************.mf_time_spine time_spine_src_28006 | ||
) subq_20 | ||
WHERE ( |
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.
filter now in outer query, makes sense with alias change, but why did this change?
@@ -7,8 +7,8 @@ sql_engine: DuckDB | |||
-- Constrain Time Range to [2020-01-01T00:00:02, 2020-01-01T00:00:08] | |||
-- Pass Only Elements: ['metric_time__second',] | |||
SELECT | |||
DATE_TRUNC('second', ts) AS metric_time__second | |||
ts AS metric_time__second |
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.
Put up a separate commit for this change
1628530
to
4cdae61
Compare
These tests aren't testing anything particularly useful, and they will require significant refactoring to work with changes up the stack. Remove them instead.
This will change later when we support multiple time spine nodes per query. For now, move the error to the core function so that we don't need to do error handling everywhere this gets used (which will be several places further up the stack). Also adds a helper to improve readability.
… for time spines The metric time nodes are used for resolving metric_time without metrics. The read SQL nodes will be used for time spine joins.
This will enable more efficient queries. We require this grain to be accurate.
6a517ec
to
f39948c
Compare
No description provided.