Skip to content
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

executor: implement SortAgg #591

Closed
Tracked by #572
skyzh opened this issue Mar 27, 2022 · 1 comment · Fixed by #646
Closed
Tracked by #572

executor: implement SortAgg #591

skyzh opened this issue Mar 27, 2022 · 1 comment · Fixed by #646
Assignees
Labels
enhancement New feature or request

Comments

@skyzh
Copy link
Member

skyzh commented Mar 27, 2022

SortAgg is a special aggregator that takes an input of sorted group keys. For example:

select sum(x) from table group by group_key;

| group_key | x |
| a         | 1 |
| a         | 2 |
| a         | 3 |
| b         | 1 |

As data are already sorted with group_key, SortAgg can only have state for one group at a time, which significantly reduces memory footprint.

@skyzh skyzh mentioned this issue Mar 27, 2022
18 tasks
@skyzh skyzh added the enhancement New feature or request label Apr 28, 2022
@Kikkon
Copy link
Contributor

Kikkon commented Apr 29, 2022

Let me have a try! : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants