-
Notifications
You must be signed in to change notification settings - Fork 94
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
Conversation
ebb64c0
to
7ce16d1
Compare
46f982b
to
a418422
Compare
a323af6
to
4cd0558
Compare
4cd0558
to
fda4ac9
Compare
7ce16d1
to
24d77fd
Compare
fda4ac9
to
c841553
Compare
24d77fd
to
bd5d6b1
Compare
c841553
to
5a9baa6
Compare
bd5d6b1
to
c6b4526
Compare
5a9baa6
to
82dcf53
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.
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 |
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.
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.
c6b4526
to
daf40f9
Compare
82dcf53
to
d6b83dd
Compare
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.