mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
CLICKHOUSE-1660 add test
This commit is contained in:
parent
db8e63ff67
commit
910bb20ccf
@ -0,0 +1,3 @@
|
||||
1 1 1 1
|
||||
2 2 2 2
|
||||
3 3 3 3
|
15
dbms/tests/queries/0_stateless/00702_join_with_using.sql
Normal file
15
dbms/tests/queries/0_stateless/00702_join_with_using.sql
Normal file
@ -0,0 +1,15 @@
|
||||
SET send_logs_level = 'none';
|
||||
|
||||
DROP TABLE IF EXISTS test.using1;
|
||||
DROP TABLE IF EXISTS test.using2;
|
||||
|
||||
CREATE TABLE test.using1(a UInt8, b UInt8) ENGINE=Memory;
|
||||
CREATE TABLE test.using2(a UInt8, b UInt8) ENGINE=Memory;
|
||||
|
||||
INSERT INTO test.using1 VALUES (1, 1) (2, 2) (3, 3);
|
||||
INSERT INTO test.using2 VALUES (4, 4) (2, 2) (3, 3);
|
||||
|
||||
SELECT * FROM test.using1 ALL LEFT JOIN (SELECT * FROM test.using2) USING (a, a, a, b, b, b, a, a) ORDER BY a;
|
||||
|
||||
DROP TABLE test.using1;
|
||||
DROP TABLE test.using2;
|
Loading…
Reference in New Issue
Block a user