-
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
Update SqlWindowFunction
enum
#1266
Conversation
0f3d177
to
33949df
Compare
Add AVERAGE for cumulative metrics with non-default granularities. Remove ROW_NUMBER since it isn't used anywhere. Update values to be uppercase for consistency with our other SQL rendering practices.
26b4e84
to
95db3fa
Compare
FIRST_VALUE = "first_value" | ||
ROW_NUMBER = "row_number" | ||
FIRST_VALUE = "FIRST_VALUE" | ||
LAST_VALUE = "LAST_VALUE" |
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.
do we need to include this?
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.
Which part? The uppercasing?
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.
the last_value enum
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 yes! Sorry forgot to include in the PR description! Will also be used for non-default granularities with cumulative metrics. We could use FIRST_VALUE
and order desc
, but I decided this was more readable because it aligns with the YAML argument names (which are first
/last
).
Update
SqlWindowFunction
enum in a few ways:AVERAGE
&LAST_VALUE
for cumulative metrics with non-default granularities.ROW_NUMBER
since it isn't used anywhere.All snapshot updates are just upper-casing from
first_value
toFIRST_VALUE
.