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

SQL rendering tests for no-metric queries with custom granularity #1411

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

courtneyholcomb
Copy link
Contributor

@courtneyholcomb courtneyholcomb commented Sep 18, 2024

Tests for no-metric queries with custom granularities. Does not include tests with filters (coming later). If you have suggestions for additional no-metric scenarios that should be tested, please let me know!
Note that there is a bug in the optimization for one of these tests. I have a task to fix this up stack.

@cla-bot cla-bot bot added the cla:yes label Sep 18, 2024
@dbt-labs dbt-labs deleted a comment from github-actions bot Sep 18, 2024
@courtneyholcomb courtneyholcomb changed the title WIP - more tests (no metric queries, etc) Write tests for no-metric queries with custom granularity Sep 18, 2024
@courtneyholcomb courtneyholcomb changed the title Write tests for no-metric queries with custom granularity Write SQL rendering tests for no-metric queries with custom granularity Sep 18, 2024
@courtneyholcomb courtneyholcomb changed the title Write SQL rendering tests for no-metric queries with custom granularity SQL rendering tests for no-metric queries with custom granularity Sep 18, 2024
@courtneyholcomb courtneyholcomb marked this pull request as ready for review September 18, 2024 22:38
@courtneyholcomb courtneyholcomb added the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Sep 18, 2024
@github-actions github-actions bot removed the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Sep 18, 2024
@courtneyholcomb courtneyholcomb added the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Sep 18, 2024
@github-actions github-actions bot removed the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Sep 18, 2024
@courtneyholcomb courtneyholcomb added the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Sep 24, 2024
@github-actions github-actions bot removed the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Sep 24, 2024
Copy link
Contributor

@tlento tlento left a comment

Choose a reason for hiding this comment

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

:shipit:

Comment on lines +10 to +18
FROM ***************************.dim_users users_ds_source_src_28000
CROSS JOIN
***************************.mf_time_spine time_spine_src_28006
LEFT OUTER JOIN
***************************.mf_time_spine subq_11
ON
subq_7.metric_time__day = subq_11.ds
LEFT OUTER JOIN
***************************.mf_time_spine subq_12
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh yeah this is that thing we discussed where these queries can get weirdly redundant and expensive. Hopefully we can optimize this more easily as we restructure the dataflow plan builder around CTEs and stuff like that.

Base automatically changed from court/custom-grain-dfp-7 to main September 24, 2024 21:36
@courtneyholcomb courtneyholcomb enabled auto-merge (squash) September 24, 2024 21:38
@courtneyholcomb courtneyholcomb merged commit adf7a97 into main Sep 24, 2024
14 checks passed
@courtneyholcomb courtneyholcomb deleted the court/custom-grain-dfp-8 branch September 24, 2024 21:40
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.

2 participants