-
Notifications
You must be signed in to change notification settings - Fork 1k
Scalar array operation pushdown to bloom filters #8465
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
49f77df
Scalar array operation pushdown to bloom filters
akuzm 02aa36e
comments
akuzm fd8188d
format
akuzm 021ab07
cleanup
akuzm 5ffc11d
changelog
akuzm bc63fb8
Merge origin/main into tmp (using imerge)
akuzm f350696
Revert "Revert "Use stateful detoaster in bloom1_contains (#8300)" (#…
akuzm 863da6e
fixes
akuzm 8d4e7aa
typo
akuzm 0aaed55
tests
akuzm b94cf74
remove unrelated changes
akuzm 850527b
test
akuzm c6bf3a9
more tests
akuzm 64cec72
Merge commit 'd4eac1b2cfc798964c3bd8de45653c65f8f7d759' into HEAD
akuzm c3534bc
Merge remote-tracking branch 'origin/main' into HEAD
akuzm 4c82ef4
test fixes
akuzm b07f0b1
refs?
akuzm f16b004
buffers off
akuzm 4628182
add example with IN
akuzm 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Implements: #8465 Speed up the filters like `x = any(array[...])` using bloom filter sparse indexes. |
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 |
|---|---|---|
|
|
@@ -16,6 +16,11 @@ DROP FUNCTION IF EXISTS ts_hypercore_proxy_handler; | |
| DROP FUNCTION IF EXISTS ts_hypercore_handler; | ||
| DROP FUNCTION IF EXISTS _timescaledb_debug.is_compressed_tid; | ||
|
|
||
| CREATE FUNCTION _timescaledb_functions.bloom1_contains_any(_timescaledb_internal.bloom1, anyarray) | ||
| RETURNS bool | ||
| AS '@MODULE_PATHNAME@', 'ts_update_placeholder' | ||
| LANGUAGE C IMMUTABLE PARALLEL SAFE; | ||
|
|
||
| DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression_execute; | ||
| DROP FUNCTION IF EXISTS @[email protected]_compression_policy; | ||
| DROP PROCEDURE IF EXISTS @[email protected]_columnstore_policy; | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -25,6 +25,8 @@ DEFAULT FOR TYPE int4 USING hypercore_proxy AS | |
| CREATE FUNCTION _timescaledb_debug.is_compressed_tid(tid) RETURNS BOOL | ||
| AS '@MODULE_PATHNAME@', 'ts_update_placeholder' LANGUAGE C STRICT; | ||
|
|
||
| DROP FUNCTION _timescaledb_functions.bloom1_contains_any(_timescaledb_internal.bloom1, anyarray); | ||
|
|
||
| DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression_execute; | ||
| DROP FUNCTION IF EXISTS @[email protected]_compression_policy; | ||
| DROP PROCEDURE IF EXISTS @[email protected]_columnstore_policy; | ||
|
|
||
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
Oops, something went wrong.
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.
Can
ScalarArrayOpExprhave other than 2 args? Maybe Assert would be better?