-
Notifications
You must be signed in to change notification settings - Fork 90
feat: DH-21522: allow column region optimizations in Predicate Pushdown filtering #7666
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
Open
lbooker42
wants to merge
26
commits into
deephaven:main
Choose a base branch
from
lbooker42:nightly/DH-21522-parquettablelocation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,926
−1,389
Open
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
27978f0
Changed RegionedColumnSourceBase to handle single column filters and …
lbooker42 d44e00d
Lots more work, allowing column region and table locatiop pushdown op…
lbooker42 73adb07
Addressed copilot PR comments.
lbooker42 3b67e34
Improved and consolidated RowKeyAgnosticChunkSource filtering.
lbooker42 163f4c7
Cleanup and spotless
lbooker42 557eae2
Support for ColumnRegion Constant and Null regions and tests.
lbooker42 43e895d
Merge branch 'main' into nightly/DH-21522-parquettablelocation
lbooker42 8dc65e6
Updated the new test to use QueryTable disables rather than burying u…
lbooker42 0450746
Update test to reflect new reality.
lbooker42 e5e9e1f
Coordinated changes to allow Core+ optimizations.
lbooker42 5afc2ae
Merge branch 'main' into nightly/DH-21522-parquettablelocation
lbooker42 fda03ee
Final co-pilot suggestion.
lbooker42 4c8f2de
Use createNull for new null regions.
lbooker42 49dcf57
Minor changes from co-pilot.
lbooker42 3464b4a
Consolidation of repeated code.
lbooker42 ece9334
More cleanup
lbooker42 bcb14f0
WIP
lbooker42 7358204
Lots of self-review.
lbooker42 d9f08a8
Changes to the column region classes
lbooker42 76e8df6
Rework filter contexts.
lbooker42 9eb02f7
Correct failing test, more cleanup in the filter contexts.
lbooker42 f94919f
Revert RCF to not include ExposesChunkFilter.
lbooker42 7a6c143
Correct test and verify coverage.
lbooker42 0ef8684
Final copilot PR comments addressed.
lbooker42 5117682
Changes to improve coverage.
lbooker42 62c13dc
Spotless :(
lbooker42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,14 +54,18 @@ | |
| public class BooleanSparseArraySource extends SparseArrayColumnSource<Boolean> | ||
| implements MutableColumnSourceGetDefaults.ForBoolean /* MIXIN_IMPLS */ { | ||
| // region recyclers | ||
| private static final SoftRecycler<byte[]> recycler = new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY, | ||
| () -> new byte[BLOCK_SIZE], null); | ||
| private static final SoftRecycler<byte[][]> recycler2 = new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY2, | ||
| () -> new byte[BLOCK2_SIZE][], null); | ||
| private static final SoftRecycler<ByteOneOrN.Block2[]> recycler1 = new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY1, | ||
| () -> new ByteOneOrN.Block2[BLOCK1_SIZE], null); | ||
| private static final SoftRecycler<ByteOneOrN.Block1[]> recycler0 = new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY0, | ||
| () -> new ByteOneOrN.Block1[BLOCK0_SIZE], null); | ||
| private static final SoftRecycler<byte[]> recycler = | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like an unnecessary change here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is spotless being angry. I'm not sure why this file was affected this time and not previously. |
||
| new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY, | ||
| () -> new byte[BLOCK_SIZE], null); | ||
| private static final SoftRecycler<byte[][]> recycler2 = | ||
| new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY2, | ||
| () -> new byte[BLOCK2_SIZE][], null); | ||
| private static final SoftRecycler<ByteOneOrN.Block2[]> recycler1 = | ||
| new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY1, | ||
| () -> new ByteOneOrN.Block2[BLOCK1_SIZE], null); | ||
| private static final SoftRecycler<ByteOneOrN.Block1[]> recycler0 = | ||
| new SoftRecycler<>(SparseArrayColumnSourceConfiguration.BOOLEAN_RECYCLER_CAPACITY0, | ||
| () -> new ByteOneOrN.Block1[BLOCK0_SIZE], null); | ||
| // endregion recyclers | ||
|
|
||
| /** | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've added imports without any actual code changes here and in WritableBooleanChunk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were auto-added when I executed the replication code. I'll look deeper and try to understand how/why