-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add order_by
and limit
fields to saved queries
#10532
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Add `order_by` and `limit` fields to saved queries. | ||
time: 2024-08-06T14:48:59.035914-07:00 | ||
custom: | ||
Author: plypaul | ||
Issue: "10531" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ | |
- "{{ TimeDimension('id__ds', 'DAY') }} <= now()" | ||
- "{{ TimeDimension('id__ds', 'DAY') }} >= '2023-01-01'" | ||
- "{{ Metric('txn_revenue', ['id']) }} > 1" | ||
order_by: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd recommend adding some logic in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was added. |
||
- "Metric('simple_metric')" | ||
- "Dimension('id__ds')" | ||
limit: 10 | ||
exports: | ||
- name: my_export | ||
config: | ||
|
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.
Not sure if you saw this / used it but there is a
make json_schema
target you can use to generate this.