summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
diff options
context:
space:
mode:
authorvvvv <[email protected]>2025-10-10 09:49:53 +0300
committervvvv <[email protected]>2025-10-10 10:04:09 +0300
commitc62bab8ab3141ff460f885bf2dafb922e0c19d38 (patch)
treeb37257fe1cd06a87b589992db93124d456f39152 /yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
parent172bf557598ad5d2a67c1d18ff9d4857a6b40722 (diff)
YQL-20339 Python UDF support
init commit_hash:2a30a1b920f341e1f9250df382dd951604a0894f
Diffstat (limited to 'yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql')
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql b/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
new file mode 100644
index 00000000000..ef4aa9f0132
--- /dev/null
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
@@ -0,0 +1,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));
+
+