mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test case to 01049_join_low_card_crash
This commit is contained in:
parent
05115dcd32
commit
b6be838a75
@ -4,9 +4,13 @@ a 1 2
|
||||
b 0 3
|
||||
0 b 3
|
||||
a 1 a 2
|
||||
0
|
||||
7
|
||||
a 1
|
||||
b \N
|
||||
a 1 2
|
||||
b \N 3
|
||||
a 1 a 2
|
||||
\N \N b 3
|
||||
7
|
||||
\N
|
||||
|
@ -11,11 +11,15 @@ SELECT * FROM Alpha FULL JOIN (SELECT 'b' as foo) js2 USING (foo) ORDER BY foo;
|
||||
SELECT * FROM Alpha FULL JOIN Beta USING (foo) ORDER BY foo;
|
||||
SELECT * FROM Alpha FULL JOIN Beta ON Alpha.foo = Beta.foo ORDER BY foo;
|
||||
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/20315#issuecomment-789579457
|
||||
SELECT materialize(js2.k) FROM (SELECT toLowCardinality(number) AS k FROM numbers(1)) AS js1 FULL OUTER JOIN (SELECT number + 7 AS k FROM numbers(1)) AS js2 USING (k) ORDER BY js2.k;
|
||||
|
||||
SET join_use_nulls = 1;
|
||||
|
||||
SELECT * FROM Alpha FULL JOIN (SELECT 'b' as foo) js2 USING (foo) ORDER BY foo;
|
||||
SELECT * FROM Alpha FULL JOIN Beta USING (foo) ORDER BY foo;
|
||||
SELECT * FROM Alpha FULL JOIN Beta ON Alpha.foo = Beta.foo ORDER BY foo;
|
||||
SELECT materialize(js2.k) FROM (SELECT toLowCardinality(number) AS k FROM numbers(1)) AS js1 FULL OUTER JOIN (SELECT number + 7 AS k FROM numbers(1)) AS js2 USING (k) ORDER BY js2.k;
|
||||
|
||||
DROP TABLE Alpha;
|
||||
DROP TABLE Beta;
|
||||
|
Loading…
Reference in New Issue
Block a user