Skip to content

Commit 7cc6324

Browse files
authored
Merge pull request ClickHouse#80016 from shankar-iyer/fix_03355_join_to_in_optimization
Add explicit index_granularity to test 03355_join_to_in_optimization
2 parents 16e116c + d85b119 commit 7cc6324

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/queries/0_stateless/03355_join_to_in_optimization.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ SET join_algorithm = 'hash';
33

44
DROP TABLE IF EXISTS t1;
55
DROP TABLE IF EXISTS t2;
6-
CREATE TABLE t1 (`id` Int32, key String, key2 String) ENGINE = MergeTree ORDER BY id;
7-
CREATE TABLE t2 (`id` Int32, key String, key2 String) ENGINE = MergeTree ORDER BY id;
6+
CREATE TABLE t1 (`id` Int32, key String, key2 String) ENGINE = MergeTree ORDER BY id SETTINGS index_granularity=8192;
7+
CREATE TABLE t2 (`id` Int32, key String, key2 String) ENGINE = MergeTree ORDER BY id SETTINGS index_granularity=8192;
88
INSERT INTO t1 VALUES (1, '111', '111'),(2, '222', '2'),(2, '222', '222'),(3, '333', '333');
99
INSERT INTO t2 VALUES (2, 'AAA', 'AAA'),(2, 'AAA', 'a'),(3, 'BBB', 'BBB'),(4, 'CCC', 'CCC');
1010

@@ -92,4 +92,4 @@ INNER JOIN system.processes AS b
9292
ON (a.query_id = b.query_id) AND (a.query_id = b.query_id)
9393
WHERE current_database = currentDatabase()
9494
FORMAT Null
95-
SETTINGS query_plan_use_new_logical_join_step = true, query_plan_convert_join_to_in = true;
95+
SETTINGS query_plan_use_new_logical_join_step = true, query_plan_convert_join_to_in = true;

0 commit comments

Comments
 (0)