From c62bab8ab3141ff460f885bf2dafb922e0c19d38 Mon Sep 17 00:00:00 2001
From: vvvv <vvvv@yandex-team.com>
Date: Fri, 10 Oct 2025 09:49:53 +0300
Subject: YQL-20339 Python UDF support

init
commit_hash:2a30a1b920f341e1f9250df382dd951604a0894f
---
 .../python3_small/test/cases/LinearDynamic.sql     | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql

(limited to 'yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql')

diff --git a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql
new file mode 100644
index 00000000000..58b4a649a05
--- /dev/null
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql
@@ -0,0 +1,27 @@
+$s = @@
+def f(x):
+    class Once:
+        def __init__(self, v):
+            self.v = v
+            self.extracted = False
+
+        def extract(self):
+            assert not self.extracted
+            self.extracted = True
+            ret = self.v
+            self.v = None
+            return ret
+
+    return Once(x + 1)
+
+def g(x):
+    return x.extract() * 2
+@@;
+
+$l = DynamicLinearType(Int32);
+$p = Python::f(Callable<(Int32)->$l>, $s);
+$c = Python::g(Callable<($l)->Int32>, $s);
+
+select $c($p(1));
+
+
-- 
cgit v1.3

