-
Notifications
You must be signed in to change notification settings - Fork 43
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
[Epic] Query aggregation functions on groups #28
Comments
Different aggregates should be able to be implemented separately - current tickets:
Notes:
|
As per our last dev meeting on Friday Dec 10. Heres a breif breakdown of the intended syntax of the aggregate system on the GQL API.
Where:
|
What are your thoughts on allowing either a typesafe argument, and at a later date, a string argument capable of handling aliases? Would suggest the string prop should be done consistently with all other field references in our query language and should be done as part of another ticket/epic (like the child field chaining). It would seem strange to me to allow aliases here, and not everywhere else, or if each item that handles aliases handled them differently. |
Was tracking some of the commits on the aggregate branch, and saw the general strategy taken for the aggregate (specifically, the Currently you're creating a dedicated Just spit ballin. Theres an example of how Cockroach implemented their aggregate system similar to the latter of the two above approaches that I can link. The only downside I see to just using We can jump on call and throw some ideas around. Just wanted to bring it up before you got too far down the implementation. |
I was going to keep them as independent as possible, probably with stuff like average composed of count and sum. I also like to avoid over thinking stuff like that until the adding the second/third etc to minimize the amount of thought required to implement any given item - should be really easy to change post merge if we want. Can wrap them maybe for organisational reasons, or just move them into an aggregate package, but I largely prefer to keep types separate as opposed to code branching. RE: your last paragraph - is already implemented, just been cleaning up the code 😂 But that shouldn't stop us from changing anything of course. Call could be good, but preferably not today as it is quite late here now and I'm full of food :) |
Once #25 is completed, we can add aggregate functions over defined groups.
See: https://hackmd.io/@source/defradb-query#Grouping-amp-Aggregates
Edit: copied from @AndrewSisley comment below.
The text was updated successfully, but these errors were encountered: