aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/pullup_random.sql
blob: f884b2d8fb27f292caaf0359144ea8871a6b2601 (plain) (blame)
1
2
3
4
5
6
7
8
/* kikimr can not - due to random */
PRAGMA DisableSimpleColumns;
use plato;

from (select key, subkey || key as subkey, value, RANDOM(value || "x") <= 1.0 as rn from Input1) as a
join Input2 as b using(key)
select a.key, a.subkey, a.rn, b.value
order by a.key, a.rn;