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