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

Time Spine Source Node #1543

Closed
wants to merge 11 commits into from
Closed

Time Spine Source Node #1543

wants to merge 11 commits into from

Conversation

courtneyholcomb
Copy link
Contributor

No description provided.

@courtneyholcomb courtneyholcomb changed the base branch from main to court/simp4 November 21, 2024 17:33
@dbt-labs dbt-labs deleted a comment from github-actions bot Nov 21, 2024
@courtneyholcomb courtneyholcomb changed the base branch from court/simp4 to court/simp4.5 November 21, 2024 22:07
This is a huge commit but it's all just snapshot description changes. There are only three files with changed logic.
@courtneyholcomb courtneyholcomb force-pushed the court/simp5 branch 5 times, most recently from dcd97f6 to a517f46 Compare November 22, 2024 23:08
, 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
Copy link
Contributor Author

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
Copy link
Contributor Author

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 (
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@courtneyholcomb courtneyholcomb force-pushed the court/simp5 branch 3 times, most recently from 1628530 to 4cdae61 Compare November 23, 2024 01:01
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant