aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/runtime_for_select.sql
blob: 5e9ad5d10fca051d0c5ee1f68432b4c3f35e1c55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* syntax version 1 */
/* postgres can not */
for $i in Just(AsList(1,2,3)) do begin 
    select $i;
end do
else do begin
    select 10;
end do;

for $i in Just(ListCreate(Int32)) do begin 
    select $i;
end do
else do begin
    select 11;
end do;

for $i in null do begin 
    select $i;
end do
else do begin
    select 12;
end do;

for $i in AsList(4) do begin 
    select $i;
end do
else do begin
    select 13;
end do;

for $i in ListCreate(String) do begin 
    select $i;
end do
else do begin
    select 14;
end do;

for $i in AsList(5) do begin 
    select $i;
end do;

for $i in ListCreate(Bool) do begin 
    select $i;
end do