mapjoin_early_rewrite.sql 281 B

12345678
  1. /* postgres can not */
  2. USE plato;
  3. pragma DisableSimpleColumns;
  4. pragma yt.MapJoinLimit="1m";
  5. $subq = (SELECT CAST((CAST(subkey AS Int32) + 1) AS String) AS subkey_plus_one FROM Input);
  6. SELECT * FROM Input AS a JOIN $subq AS b ON a.subkey = b.subkey_plus_one order by subkey, key;