ClickHouse/tests/queries/0_stateless/00703_join_crash.sql

14 lines
425 B
MySQL
Raw Normal View History

drop table IF EXISTS tab1;
drop table IF EXISTS tab1_copy;
2018-08-30 15:44:30 +00:00
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;
2018-08-30 15:44:30 +00:00
insert into tab1 values (1, 2);
insert into tab1_copy values (2, 3);
2018-08-30 15:44:30 +00:00
select tab1.a1, tab1_copy.a1, tab1.b1 from tab1 any left join tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2;
2018-08-30 15:44:30 +00:00
drop table tab1;
drop table tab1_copy;