Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11638 from azat/skip-idx-bloom-filter-fix
Fix bloom filters for String (data skipping indices) (cherry picked from commit e460d7c)
- Loading branch information
Showing
4 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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
4 changes: 4 additions & 0 deletions
4
tests/queries/0_stateless/01307_bloom_filter_index_string_multi_granulas.reference
This file contains 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,4 @@ | ||
1 | ||
1 | ||
1 | ||
1 |
8 changes: 8 additions & 0 deletions
8
tests/queries/0_stateless/01307_bloom_filter_index_string_multi_granulas.sql
This file contains 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,8 @@ | ||
DROP TABLE IF EXISTS test_01307; | ||
CREATE TABLE test_01307 (id UInt64, val String, INDEX ind val TYPE bloom_filter() GRANULARITY 1) ENGINE = MergeTree() ORDER BY id SETTINGS index_granularity = 2; | ||
INSERT INTO test_01307 (id, val) select number as id, toString(number) as val from numbers(4); | ||
SELECT count() FROM test_01307 WHERE identity(val) = '2'; | ||
SELECT count() FROM test_01307 WHERE val = '2'; | ||
OPTIMIZE TABLE test_01307 FINAL; | ||
SELECT count() FROM test_01307 WHERE identity(val) = '2'; | ||
SELECT count() FROM test_01307 WHERE val = '2'; |