aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/distinct/distinct_join.sql
blob: 0e2aba1c5ccdc7297032e4b808a17f9966ca79be (plain) (blame)
1
2
3
4
5
6
7
8
/* syntax version 1 */

use plato;

select distinct * from (select Unwrap(cast(key as Int32)) as key, value from Input2) as a 
join                   (select Just(1ul) as key, 123 as subkey) as b
using(key) order by value;