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

ESQL: no deep copy in expand #102776

Closed
wants to merge 3 commits into from

Conversation

alex-spies
Copy link
Contributor

Avoid deep copies when calling Block::expand, instead incRef() the current block and return a special, expanded view into the Block.

Make it so the returned block always has to be closed/decRef'd by the
caller.
Handle cases without nulls only, for now.
Comment on lines +86 to +89
if (nullsMask == null) {
incRef();
return new BooleanArrayBlock.Expanded();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the main change, the rest is mostly generated or boilerplate.

@alex-spies
Copy link
Contributor Author

Closing in favor of #103681

@alex-spies alex-spies closed this Dec 22, 2023
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.

3 participants