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

Use chunks in DynamicWhereFilter, fix a chunk leak, and cleanup some code generally #4826

Merged
merged 7 commits into from
Nov 15, 2023

Conversation

rcaudy
Copy link
Member

@rcaudy rcaudy commented Nov 14, 2023

No description provided.

@rcaudy rcaudy added query engine core Core development tasks NoDocumentationNeeded ReleaseNotesNeeded Release notes are needed labels Nov 14, 2023
@rcaudy rcaudy added this to the November 2023 milestone Nov 14, 2023
@rcaudy rcaudy self-assigned this Nov 14, 2023
Comment on lines +302 to +304
final Chunk<Values> keyChunk = Chunk.downcast(tupleSource.getChunk(keyGetContext, selectionChunk));
final int thisChunkSize = keyChunk.size();
setInclusionKernel.matchValues(keyChunk, matches);
Copy link
Member

Choose a reason for hiding this comment

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

There isn't anything "special" about SetInclusionKernel; do we always know it will be an object chunk now?

There doesn't seem to be any value in copying into matches, to then just use it later as filter. I think we can simply check against liveValues as we iterate and build index.

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I combined the single column case and the tuple case, we do not know it will always be an object chunk. Set inclusion let's us do non-boxing inclusion tests. That is, it is special.

@rcaudy rcaudy merged commit f949bb0 into deephaven:main Nov 15, 2023
10 checks passed
@rcaudy rcaudy deleted the rwc-whereinfix branch November 15, 2023 15:55
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Core development tasks NoDocumentationNeeded query engine ReleaseNotesNeeded Release notes are needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants