aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/mapjoin_early_rewrite_star.sql
blob: 806a6ad8c92f1d781c74dd758a00075abad593e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
/* postgres can not */
USE plato;
pragma DisableSimpleColumns;
pragma yt.MapJoinLimit="1m";
pragma yt.JoinEnableStarJoin="true";

$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;