mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Add test pmj_lc_bug
This commit is contained in:
parent
c8f51998ba
commit
8dcfe119bf
4
tests/queries/0_stateless/01785_pmj_lc_bug.reference
Normal file
4
tests/queries/0_stateless/01785_pmj_lc_bug.reference
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
14
tests/queries/0_stateless/01785_pmj_lc_bug.sql
Normal file
14
tests/queries/0_stateless/01785_pmj_lc_bug.sql
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
SET join_algorithm = 'partial_merge';
|
||||||
|
SET max_bytes_in_join = '100';
|
||||||
|
|
||||||
|
CREATE TABLE foo_lc (n LowCardinality(String)) ENGINE = Memory;
|
||||||
|
CREATE TABLE foo (n String) ENGINE = Memory;
|
||||||
|
|
||||||
|
INSERT INTO foo SELECT toString(number) AS n FROM system.numbers LIMIT 1025;
|
||||||
|
INSERT INTO foo_lc SELECT toString(number) AS n FROM system.numbers LIMIT 1025;
|
||||||
|
|
||||||
|
SELECT 1025 == count(n) FROM foo_lc AS t1 ANY LEFT JOIN foo_lc AS t2 ON t1.n == t2.n;
|
||||||
|
SELECT 1025 == count(n) FROM foo AS t1 ANY LEFT JOIN foo_lc AS t2 ON t1.n == t2.n;
|
||||||
|
SELECT 1025 == count(n) FROM foo_lc AS t1 ANY LEFT JOIN foo AS t2 ON t1.n == t2.n;
|
||||||
|
|
||||||
|
SELECT 1025 == count(n) FROM foo_lc AS t1 ALL LEFT JOIN foo_lc AS t2 ON t1.n == t2.n;
|
Loading…
Reference in New Issue
Block a user