aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/join_cbo_3_tables.sql
blob: 12d53dd38fe5c74dfbeffa3ec50c57a6c74aaa20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
use plato;

pragma CostBasedOptimizer="pg";

select i1.value, i2.value, i3.value, i4.value 
from Input1 as i1
join Input2 as i2 on i1.key=i2.key
join Input3 as i3 on i1.key=i3.key
join Input4 as i4 on i1.key=i4.key
order by i1.value, i2.value, i3.value, i4.value;