ClickHouse/tests/queries/0_stateless/00703_join_crash.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

14 lines
425 B
SQL

drop table IF EXISTS tab1;
drop table IF EXISTS tab1_copy;
create table tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1;
create table tab1_copy (a1 Int32, b1 Int32) engine = MergeTree order by a1;
insert into tab1 values (1, 2);
insert into tab1_copy values (2, 3);
select tab1.a1, tab1_copy.a1, tab1.b1 from tab1 any left join tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2;
drop table tab1;
drop table tab1_copy;