mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
fix tests
This commit is contained in:
parent
64244250c2
commit
0a79fd0c40
@ -1,2 +1,3 @@
|
|||||||
|
SET min_joined_block_size_bytes = 0;
|
||||||
SET max_block_size = 6;
|
SET max_block_size = 6;
|
||||||
SELECT blockSize() bs FROM (SELECT 1 s) js1 ALL RIGHT JOIN (SELECT arrayJoin([2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3]) s) js2 USING (s) GROUP BY bs ORDER BY bs;
|
SELECT blockSize() bs FROM (SELECT 1 s) js1 ALL RIGHT JOIN (SELECT arrayJoin([2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3]) s) js2 USING (s) GROUP BY bs ORDER BY bs;
|
||||||
|
@ -7,6 +7,7 @@ CREATE TABLE t2 (id Int) ENGINE = MergeTree ORDER BY id;
|
|||||||
INSERT INTO t1 VALUES (1), (2);
|
INSERT INTO t1 VALUES (1), (2);
|
||||||
INSERT INTO t2 SELECT number + 5 AS x FROM (SELECT * FROM system.numbers LIMIT 1111);
|
INSERT INTO t2 SELECT number + 5 AS x FROM (SELECT * FROM system.numbers LIMIT 1111);
|
||||||
|
|
||||||
|
SET min_joined_block_size_bytes = 0;
|
||||||
SET max_block_size = 100;
|
SET max_block_size = 100;
|
||||||
|
|
||||||
SELECT count() == 2222 FROM t1 JOIN t2 ON 1 = 1;
|
SELECT count() == 2222 FROM t1 JOIN t2 ON 1 = 1;
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
(Expression)
|
(Expression)
|
||||||
ExpressionTransform
|
ExpressionTransform
|
||||||
(Join)
|
(Join)
|
||||||
JoiningTransform 2 → 1
|
SimpleSquashingTransform
|
||||||
(Expression)
|
JoiningTransform 2 → 1
|
||||||
ExpressionTransform
|
(Expression)
|
||||||
(Limit)
|
|
||||||
Limit
|
|
||||||
(ReadFromSystemNumbers)
|
|
||||||
NumbersRange 0 → 1
|
|
||||||
(Expression)
|
|
||||||
FillingRightJoinSide
|
|
||||||
ExpressionTransform
|
ExpressionTransform
|
||||||
(Limit)
|
(Limit)
|
||||||
Limit
|
Limit
|
||||||
(ReadFromSystemNumbers)
|
(ReadFromSystemNumbers)
|
||||||
NumbersRange 0 → 1
|
NumbersRange 0 → 1
|
||||||
|
(Expression)
|
||||||
|
FillingRightJoinSide
|
||||||
|
ExpressionTransform
|
||||||
|
(Limit)
|
||||||
|
Limit
|
||||||
|
(ReadFromSystemNumbers)
|
||||||
|
NumbersRange 0 → 1
|
||||||
|
@ -8,6 +8,8 @@ CREATE table t2 (a UInt64) ENGINE = Memory;
|
|||||||
|
|
||||||
INSERT INTO t2 SELECT number % 2 FROM numbers(10);
|
INSERT INTO t2 SELECT number % 2 FROM numbers(10);
|
||||||
|
|
||||||
|
SET min_joined_block_size_bytes = 0;
|
||||||
|
|
||||||
-- block size is always multiple of 5 because we have 5 rows for each key in right table
|
-- block size is always multiple of 5 because we have 5 rows for each key in right table
|
||||||
-- we do not split rows corresponding to the same key
|
-- we do not split rows corresponding to the same key
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user