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 #53000 from ClickHouse/vdimir/join_filter_set_sparse
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 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
2 changes: 2 additions & 0 deletions
2
tests/queries/0_stateless/02841_join_filter_set_sparse.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,2 @@ | ||
3428033 | ||
3428033 |
22 changes: 22 additions & 0 deletions
22
tests/queries/0_stateless/02841_join_filter_set_sparse.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,22 @@ | ||
|
||
DROP TABLE IF EXISTS t1; | ||
DROP TABLE IF EXISTS t2; | ||
|
||
CREATE TABLE t1 (s String) ENGINE = MergeTree ORDER BY s | ||
SETTINGS ratio_of_defaults_for_sparse_serialization = 0.5; | ||
|
||
INSERT INTO t1 SELECT if (number % 13 = 0, toString(number), '') FROM numbers(2000); | ||
|
||
CREATE TABLE t2 (s String) ENGINE = MergeTree ORDER BY s | ||
SETTINGS ratio_of_defaults_for_sparse_serialization = 0.5; | ||
|
||
INSERT INTO t2 SELECT if (number % 14 = 0, toString(number), '') FROM numbers(2000); | ||
|
||
SELECT countIf(ignore(*) == 0) FROM t1 JOIN t2 ON t1.s = t2.s; | ||
|
||
SET join_algorithm = 'full_sorting_merge', max_rows_in_set_to_optimize_join = 100_000; | ||
|
||
SELECT countIf(ignore(*) == 0) FROM t1 JOIN t2 ON t1.s = t2.s; | ||
|
||
DROP TABLE t1; | ||
DROP TABLE t2; |