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

Make vectors RefCounted #103645

Merged
merged 5 commits into from
Dec 21, 2023
Merged

Make vectors RefCounted #103645

merged 5 commits into from
Dec 21, 2023

Conversation

alex-spies
Copy link
Contributor

This allows to share vectors among multiple blocks and will be useful for improving the performance of expand and filter operators.

Relates #100528.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/elasticsearch-esql (:Query Languages/ES|QL)

throw new IllegalStateException("can't release already released vector [" + this + "]");
}
released = true;
blockFactory().adjustBreaker(-ramBytesUsed(), true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The super method already does exactly this.

@alex-spies alex-spies merged commit 567f427 into elastic:main Dec 21, 2023
15 checks passed
@alex-spies alex-spies deleted the ref-count-vectors branch December 21, 2023 13:26
@alex-spies
Copy link
Contributor Author

Thanks for the quick review @nik9000 !

@dnhatn
Copy link
Member

dnhatn commented Dec 21, 2023

Thank you, Alex!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >non-issue Team:QL (Deprecated) Meta label for query languages team v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants