summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/eval_python3_ann.yql
blob: ab3035640480d53cfee5e6c62a2221b3bb52a385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$script = @@ 
from yql.typing import *

def f(x:Int32, y:Int32)->Int32:
    """
    a simple sum UDF
    """
    return x + y
@@;

--$f = Python3::f(EvaluateType(ParseTypeHandle(Core::PythonFuncSignature(AsAtom("Python3"), $script, "f"))), $script);
$f = Python3::f($script);

select $f(1, 2);