Skip to content

Convert revocable memory to user memory on hash aggregation finish#14971

Merged
highker merged 1 commit intoprestodb:masterfrom
sachdevs:convert-revocable-to-user
Aug 6, 2020
Merged

Convert revocable memory to user memory on hash aggregation finish#14971
highker merged 1 commit intoprestodb:masterfrom
sachdevs:convert-revocable-to-user

Conversation

@sachdevs
Copy link
Contributor

@sachdevs sachdevs commented Aug 5, 2020

Spillable hash aggregation keeps allocated memory in revocable memory pool instead of converting it during finish. This is a bug. I have also moved some of our tracking logic for when operator is finishing to SpillableHashAggregationBuilder.

Adapted from second commit in trinodb/trino#164.

== NO RELEASE NOTE ==

@sachdevs sachdevs requested review from highker and wenleix August 5, 2020 21:50
@sachdevs sachdevs force-pushed the convert-revocable-to-user branch from 5ddd21f to 55f5e8a Compare August 5, 2020 21:53
@sachdevs
Copy link
Contributor Author

sachdevs commented Aug 5, 2020

Renamed commit to be shorter.

@sachdevs sachdevs added the bug label Aug 5, 2020
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@highker highker merged commit a2183fa into prestodb:master Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants