aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/eval_if_guard.sql
blob: 4a11e6933e97ba085afa1009fec860b11ace2ca0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* syntax version 1 */
/* postgres can not */
use plato;

$list = ListTake(AsList("Input"),0);
define action $process() as
    select count(*) FROM each($list);
end define;

evaluate if ListLength($list)>0 do $process();