fix tests

This commit is contained in:
Nikita Taranov 2024-11-10 15:16:25 +01:00
parent 64244250c2
commit 0a79fd0c40
4 changed files with 14 additions and 9 deletions

View File

@ -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;

View File

@ -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;

View File

@ -1,6 +1,7 @@
(Expression) (Expression)
ExpressionTransform ExpressionTransform
(Join) (Join)
SimpleSquashingTransform
JoiningTransform 2 → 1 JoiningTransform 2 → 1
(Expression) (Expression)
ExpressionTransform ExpressionTransform

View File

@ -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