-
Notifications
You must be signed in to change notification settings - Fork 98
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
Metric filters for distinct values queries #1107
Metric filters for distinct values queries #1107
Conversation
6dda541
to
a34b3b3
Compare
d028188
to
fe30ab3
Compare
Trino is once again unhappy about something. Another non-ANSI but broadly-supported group by expression, perhaps? |
b2b0efe
to
c3c16ab
Compare
fe30ab3
to
bd8a335
Compare
@tlento DANGIT. Updated! |
Argh, this fell off my radar, sorry. Is this commit set correct? It looks like you need a rebase, I'm seeing things that look like duplicates of earlier work. If so, you can just point me to the first thing I should read and I can go from there while the PR itself gets fixed up. |
Dangit you're right! The first commit to look at is Add METRIC property to all_properties. Thank you!! |
d495014
to
4f0fb54
Compare
4f0fb54
to
2d45143
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.
Forgotten no more! Sorry about that, every day I was like "oh I'll do this before I stop today" and every day I filled my brain with dataflow plan builder implementation details and forgot all about everything else, so I'm going back to the review first, code later order of operations.
--- | ||
integration_test: | ||
name: distinct_values_query_with_metric_filter | ||
description: Query withought metrics using a metric filter |
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.
micro-nit: without
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.
Idk I kinda like my creative spelling.
filter_location=WhereFilterLocation.for_query( | ||
tuple(metric_spec.reference for metric_spec in query_spec.metric_specs) | ||
), | ||
filter_location=WhereFilterLocation.for_query(metric_references=tuple()), |
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.
You know, it took me way too long to figure out why there were no metric specs in this query. 🤦
Completes SL-1939
Description
Enable metric filters for distinct values queries (queries without metrics).