aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/subquery_merge2.sql
blob: f8d4918c835b597ab220bfa5e7caafb3fd5ec8f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* syntax version 1 */
/* postgres can not */
define subquery $sub($i) as 
    select $i as x;
end define;

$s = SubqueryExtendFor([1,2,3],$sub);
process $s();

$s = SubqueryUnionAllFor([1,2,3],$sub);
process $s();

$s = SubqueryMergeFor([1,2,3],$sub);
process $s();

$s = SubqueryUnionMergeFor([1,2,3],$sub);
process $s();