Skip to content

Revert lazy map#12196

Merged
yingsu00 merged 1 commit intoprestodb:masterfrom
yingsu00:revertLazyMap
Jan 9, 2019
Merged

Revert lazy map#12196
yingsu00 merged 1 commit intoprestodb:masterfrom
yingsu00:revertLazyMap

Conversation

@yingsu00
Copy link
Contributor

@yingsu00 yingsu00 commented Jan 8, 2019

PR #11791 (commit 23de11f), which lazily builds the hashtables for maps, introduced a regression for the case where the MapBlock is created through AbstractMapBlock.getRegion(). The hashtables built on the MapBlock region were not updated in the original MapBlock, thus causing hashtables repeatedly being built on the same base MapBlock.

The fix #12189 doesn't get time to get into release 0.216. So we will revert the original commit 23de11f and make the original commits and this fix in the next release 0.217

@nezihyigitbasi
Copy link
Contributor

nezihyigitbasi commented Jan 8, 2019

Please provide more info about why we are reverting these changes in the commit messages as they will be helpful later when we look at the git history.

This reverts
1) commit ad05dcb.
2) commit 23de11f.

PR prestodb#11791 (commit 23de11f and ad05dcb), which lazily builds the
hashtables for maps, introduced a regression for the case where the
MapBlock is created through AbstractMapBlock.getRegion(). The hashtables
built on the MapBlock region were not updated in the original MapBlock,
thus causing hashtables repeatedly being built on the same base MapBlock.
Copy link
Contributor

@wenleix wenleix left a comment

Choose a reason for hiding this comment

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

LGTM.

Per discussion, please squash the two commit, and explain the reason of reverting in the commit message as well.

Copy link
Contributor

@martint martint left a comment

Choose a reason for hiding this comment

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

Assuming this is a pure revert with no additional changes, it looks good.

@yingsu00 yingsu00 merged commit 79f480b into prestodb:master Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants