aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/eval_python_signature.sql
blob: 98ccfb12f0fdb7e80ca5e06707e8606805b67994 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* syntax version 1 */
/* postgres can not */
$script = @@ 
def f(x, y):
    """
    (Int32, Int32)
      ->Int32
    
    a simple sum UDF
    """
    return x + y
@@;

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

select $f(1, 2);