mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added a test #3170
This commit is contained in:
parent
8b6b6c8035
commit
2695a4614d
@ -0,0 +1 @@
|
||||
1 name1
|
23
dbms/tests/queries/0_stateless/00844_join_lightee2.sql
Normal file
23
dbms/tests/queries/0_stateless/00844_join_lightee2.sql
Normal file
@ -0,0 +1,23 @@
|
||||
USE test;
|
||||
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS t1 (
|
||||
f1 UInt32,
|
||||
f2 String
|
||||
) ENGINE = MergeTree ORDER BY (f1);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS t2 (
|
||||
f1 String,
|
||||
f3 String
|
||||
) ENGINE = MergeTree ORDER BY (f1);
|
||||
|
||||
insert into t1 values(1,'1');
|
||||
insert into t2 values('1','name1');
|
||||
|
||||
select t1.f1,t2.f3 from t1 all inner join t2 on t1.f2 = t2.f1
|
||||
where t2.f1 = '1';
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
Loading…
Reference in New Issue
Block a user