Skip to content

Fix aggregation memory revoke when operator is finishing#164

Merged
sopel39 merged 5 commits intotrinodb:masterfrom
starburstdata:ks/hash_agg_recok
Feb 6, 2019
Merged

Fix aggregation memory revoke when operator is finishing#164
sopel39 merged 5 commits intotrinodb:masterfrom
starburstdata:ks/hash_agg_recok

Conversation

@sopel39
Copy link
Member

@sopel39 sopel39 commented Feb 5, 2019

No description provided.

@sopel39 sopel39 added the bug label Feb 5, 2019
@sopel39 sopel39 requested a review from findepi February 5, 2019 19:36
@cla-bot cla-bot bot added the cla-signed label Feb 5, 2019
Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

Generally looks good. Please update code as fixups for easier re-review.

Copy link
Member

Choose a reason for hiding this comment

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

nit: 300_000

Copy link
Member

Choose a reason for hiding this comment

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

I don't get it. Previously the code was calling assertOperatorEqualsIgnoreOrder
Now it's more verbose, including manually calling toPages, dropping hash channels, converting to MaterializedResult.
i assume this is assertOperatorEqualsIgnoreOrder inlined, but what's the actual difference?

Is this really related to increasing the data set, as Produce more than single page in testHashAggregation commit message says?

Copy link
Member

Choose a reason for hiding this comment

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

This can take time.
Can we spill asynchronously?

spillToDisk();
return WorkProcessor.empty();

(then we need to updateMemory(); on next call..)

Copy link
Member Author

Choose a reason for hiding this comment

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

Added todo since this requires bigger operator refactor

@sopel39
Copy link
Member Author

sopel39 commented Feb 6, 2019

ac

Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

nit

@sopel39 sopel39 merged commit 79744f2 into trinodb:master Feb 6, 2019
@sopel39 sopel39 deleted the ks/hash_agg_recok branch February 6, 2019 12:41
rice668 pushed a commit to rice668/trino that referenced this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants