mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
18 lines
1.0 KiB
SQL
18 lines
1.0 KiB
SQL
select t1.dummy, t2.dummy, t3.dummy from system.one t1 join system.one t2 on t1.dummy = t2.dummy join system.one t3 ON t1.dummy = t3.dummy;
|
|
select * from system.one t1 join system.one t2 on t1.dummy = t2.dummy join system.one t3 ON t1.dummy = t3.dummy;
|
|
select t1.* from system.one t1 join system.one t2 on t1.dummy = t2.dummy join system.one t3 ON t1.dummy = t3.dummy;
|
|
select t2.*, t3.* from system.one t1 join system.one t2 on t1.dummy = t2.dummy join system.one t3 ON t1.dummy = t3.dummy;
|
|
select t1.dummy, t2.*, t3.dummy from system.one t1 join system.one t2 on t1.dummy = t2.dummy join system.one t3 ON t1.dummy = t3.dummy;
|
|
|
|
set multiple_joins_rewriter_version = 1;
|
|
|
|
select t1.dummy, t2.*, t3.dummy from (select * from system.one) t1
|
|
join system.one t2 on t1.dummy = t2.dummy
|
|
join system.one t3 ON t1.dummy = t3.dummy; -- { serverError 48 }
|
|
|
|
set multiple_joins_rewriter_version = 2;
|
|
|
|
select t1.dummy, t2.*, t3.dummy from (select * from system.one) t1
|
|
join system.one t2 on t1.dummy = t2.dummy
|
|
join system.one t3 ON t1.dummy = t3.dummy;
|