-
Notifications
You must be signed in to change notification settings - Fork 166
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
feat: add quantile aggregate function #279
Conversation
From just the descriptions, implementations, and a few minutes of googling I'm not at all sure what these functions and their arguments actually do. Can you please clarify in the descriptions and include argument names? |
8663f6e
to
90768f9
Compare
@jvanstraten I updated the PR. |
90768f9
to
18c4772
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.
We discussed this function at length offline. Could you update accordingly? Right now, the description and definition just isn't good enough IMO.
@jvanstraten I updated the PR and also for the approximate type, I created a new field called |
b91eb71
to
6c6b19d
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.
LGTM now!
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.
Actually, correction (sorry), the same comments I gave on the other PR for precision apply here. I guess for approximate the list items should at least be monotonously increasing/decreasing if the input is sorted ascending/descending? Again, I'm also fine with just omitting its description for now since it will be a standard option.
I updated the description of the
Shall we include options about the ordering too? If so, it shouldn't be an option of |
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.
Shall we include options about the ordering too? If so, it shouldn't be an option of precision but the operator itself, right?
No, because aggregate function bindings already include specialized options for sorting prior to aggregation in protobuf land.
Also needs a rebase.
extensions/functions_arithmetic.yaml
Outdated
- EXACT: provides the highest accurate output | ||
- APPROXIMATE: provides a sub-optimal output |
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.
I updated the description of the
precision
.
I mean here. Or maybe you forgot to push?
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.
Is it okay now?
We also need to add |
ac70967
to
4464d1b
Compare
@jvanstraten updated. |
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.
I think this looks good now.
This PR includes the
quantile
andapprox_quantile
functions for aggregate functions.