summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
blob: ef4aa9f01326ff47e95aa5a544e5860756b9b35d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$s = @@
def f(x):
   return x + 1

def g(x):
   return x * 2
@@;

$l = LinearType(Int32);
$p = Python::f(Callable<(Int32)->$l>, $s);
$c = Python::g(Callable<($l)->Int32>, $s);

select $c($p(1));