mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
fix test
This commit is contained in:
parent
0734fd7f7d
commit
0886bfb9bc
@ -1,6 +0,0 @@
|
||||
a 1
|
||||
b 0
|
||||
a 1 2
|
||||
b 0 3
|
||||
a 1 a 2
|
||||
0 b 3
|
@ -1,15 +0,0 @@
|
||||
DROP TABLE IF EXISTS Alpha;
|
||||
DROP TABLE IF EXISTS Beta;
|
||||
|
||||
CREATE TABLE Alpha (foo String, bar UInt64) ENGINE = Memory;
|
||||
CREATE TABLE Beta (foo LowCardinality(String), baz UInt64) ENGINE = Memory;
|
||||
|
||||
INSERT INTO Alpha VALUES ('a', 1);
|
||||
INSERT INTO Beta VALUES ('a', 2), ('b', 3);
|
||||
|
||||
SELECT * FROM Alpha FULL JOIN (SELECT 'b' as foo) USING (foo);
|
||||
SELECT * FROM Alpha FULL JOIN Beta USING (foo);
|
||||
SELECT * FROM Alpha FULL JOIN Beta ON Alpha.foo = Beta.foo;
|
||||
|
||||
DROP TABLE Alpha;
|
||||
DROP TABLE Beta;
|
@ -0,0 +1,12 @@
|
||||
a 1
|
||||
b 0
|
||||
a 1 2
|
||||
b 0 3
|
||||
0 b 3
|
||||
a 1 a 2
|
||||
a 1
|
||||
b \N
|
||||
a 1 2
|
||||
b \N 3
|
||||
a 1 a 2
|
||||
\N \N b 3
|
21
dbms/tests/queries/0_stateless/01049_join_low_card_crash.sql
Normal file
21
dbms/tests/queries/0_stateless/01049_join_low_card_crash.sql
Normal file
@ -0,0 +1,21 @@
|
||||
DROP TABLE IF EXISTS Alpha;
|
||||
DROP TABLE IF EXISTS Beta;
|
||||
|
||||
CREATE TABLE Alpha (foo String, bar UInt64) ENGINE = Memory;
|
||||
CREATE TABLE Beta (foo LowCardinality(String), baz UInt64) ENGINE = Memory;
|
||||
|
||||
INSERT INTO Alpha VALUES ('a', 1);
|
||||
INSERT INTO Beta VALUES ('a', 2), ('b', 3);
|
||||
|
||||
SELECT * FROM Alpha FULL JOIN (SELECT 'b' as foo) 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;
|
||||
|
||||
SET join_use_nulls = 1;
|
||||
|
||||
SELECT * FROM Alpha FULL JOIN (SELECT 'b' as foo) 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;
|
||||
|
||||
DROP TABLE Alpha;
|
||||
DROP TABLE Beta;
|
Loading…
Reference in New Issue
Block a user