1 2 3 4 5 6 7
/* syntax version 1 */ /* postgres can not */ pragma EmitAggApply; SELECT sum(key) FROM (values (cast(1 as Interval)),(null),(cast(3 as Interval))) as a(key)