/* postgres can not */ /* syntax version 1 */ USE plato; $udfScript = @@ def f(key, input): for i in input: yield { 'key': i.key, 'value': i.value, 'pass': 10 } @@; $udf_stream = Python3::f( Callable< (String,Stream>) -> Stream> >, $udfScript); REDUCE Input ON key USING $udf_stream(TableRow());