mapjoin_early_rewrite_sequence.sql 336 B

12345678910111213
  1. /* postgres can not */
  2. USE plato;
  3. pragma DisableSimpleColumns;
  4. pragma yt.MapJoinLimit="1m";
  5. $subq = (SELECT key, CAST((CAST(subkey AS Int32) + 1) AS String) AS subkey_plus_one FROM Input);
  6. FROM $subq AS a
  7. JOIN Dict1 AS d1
  8. ON a.subkey_plus_one = d1.subkey
  9. JOIN Dict2 AS d2
  10. ON a.key = d2.key
  11. SELECT * ORDER BY a.key, a.subkey_plus_one;