lookupjoin_take_skip.sql 419 B

123456789101112
  1. USE plato;
  2. PRAGMA yt.LookupJoinMaxRows="3";
  3. pragma yt.LookupJoinLimit = '10M';
  4. insert into @big
  5. select * from (select ListMap(ListFromRange(1, 100), ($x)->(Unwrap(CAST($x as String)))) as key) flatten list by key order by key;
  6. commit;
  7. $small = select substring(key, 0, 2) as key, subkey || '000' as subkey from Input order by key limit 5 offset 8;
  8. select * from @big as a join $small as b using(key) order by key;