mapjoin_with_empty_read.sql 489 B

1234567891011121314151617181920
  1. PRAGMA DisableSimpleColumns;
  2. /* postgres can not */
  3. /* kikimr can not */
  4. use plato;
  5. pragma yt.mapjoinlimit="1m";
  6. $cnt = (select count(*) from Input);
  7. $offset = ($cnt + 10) ?? 0;
  8. $in1 = (select key from Input where key != "" order by key limit 10 offset $offset);
  9. select * from Input as a
  10. left join $in1 as b on a.key = b.key;
  11. $limit = ($cnt / 100) ?? 0;
  12. $in2 = (select key from Input where key != "" limit $limit);
  13. select * from Input as a
  14. left only join $in2 as b on a.key = b.key;