summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python3_small
diff options
context:
space:
mode:
authorvvvv <[email protected]>2025-10-17 07:43:59 +0300
committervvvv <[email protected]>2025-10-17 08:05:07 +0300
commit18dc0d862c27f26775e7ed11b6d2d0853f2f9a77 (patch)
tree59f720bf2368478a37706d4e45a5bd8685d35210 /yql/essentials/udfs/common/python/python3_small
parent05b4c4f15355983e6342ce37e6f760a6ffe3feac (diff)
YQL-20339 composite types in grammar
commit_hash:2fc2878449f90c948e0cd75a3c1d59f07d660620
Diffstat (limited to 'yql/essentials/udfs/common/python/python3_small')
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail1_/extracted6
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail2_/extracted6
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql5
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql5
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail1.sql5
-rw-r--r--yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail2.sql5
6 files changed, 14 insertions, 18 deletions
diff --git a/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail1_/extracted b/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail1_/extracted
index 05e09cd7eda..21179d95d3f 100644
--- a/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail1_/extracted
+++ b/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail1_/extracted
@@ -1,12 +1,12 @@
<tmp_path>/program.sql:<main>: Error: Execution
- <tmp_path>/program.sql:<main>:50:1: Error: Execution of node: Result
+ <tmp_path>/program.sql:<main>:48:1: Error: Execution of node: Result
select $c($p(1));
^
- <tmp_path>/program.sql:<main>:46:14: Error: Failed to execute:
+ <tmp_path>/program.sql:<main>:44:14: Error: Failed to execute:
Traceback (most recent call last):
File "embedded:g", line 35, in g
ValueError: The linear value has already been used
- $c = Python::g(Callable<($l)->Int32>, $s);
+ $c = Python::g(Callable<(DynamicLinear<Int32>)->Int32>, $s);
^ \ No newline at end of file
diff --git a/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail2_/extracted b/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail2_/extracted
index 462b4b5332d..79986260774 100644
--- a/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail2_/extracted
+++ b/yql/essentials/udfs/common/python/python3_small/test/canondata/test.test_LinearDynamicFail2_/extracted
@@ -1,12 +1,12 @@
<tmp_path>/program.sql:<main>: Error: Execution
- <tmp_path>/program.sql:<main>:52:1: Error: Execution of node: Result
+ <tmp_path>/program.sql:<main>:50:1: Error: Execution of node: Result
select $c($a,0),$c($a,1);
^
- <tmp_path>/program.sql:<main>:46:14: Error: Failed to execute:
+ <tmp_path>/program.sql:<main>:44:14: Error: Failed to execute:
Traceback (most recent call last):
File "embedded:g", line 35, in g
ValueError: The linear value has already been used
- $c = Python::g(Callable<($l,Int32)->Int32>, $s);
+ $c = Python::g(Callable<(DynamicLinear<Int32>,Int32)->Int32>, $s);
^ \ No newline at end of file
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
index ef4aa9f0132..0f1ebaf2989 100644
--- a/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/Linear.sql
@@ -6,9 +6,8 @@ def g(x):
return x * 2
@@;
-$l = LinearType(Int32);
-$p = Python::f(Callable<(Int32)->$l>, $s);
-$c = Python::g(Callable<($l)->Int32>, $s);
+$p = Python::f(Callable<(Int32)->Linear<Int32>>, $s);
+$c = Python::g(Callable<(Linear<Int32>)->Int32>, $s);
select $c($p(1));
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
index 58b4a649a05..de8492ff525 100644
--- a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamic.sql
@@ -18,9 +18,8 @@ def g(x):
return x.extract() * 2
@@;
-$l = DynamicLinearType(Int32);
-$p = Python::f(Callable<(Int32)->$l>, $s);
-$c = Python::g(Callable<($l)->Int32>, $s);
+$p = Python::f(Callable<(Int32)->DynamicLinear<Int32>>, $s);
+$c = Python::g(Callable<(DynamicLinear<Int32>)->Int32>, $s);
select $c($p(1));
diff --git a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail1.sql b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail1.sql
index 5a91c16589f..b6fccfc2865 100644
--- a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail1.sql
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail1.sql
@@ -18,9 +18,8 @@ def g(x):
return x.extract() * x.extract()
@@;
-$l = DynamicLinearType(Int32);
-$p = Python::f(Callable<(Int32)->$l>, $s);
-$c = Python::g(Callable<($l)->Int32>, $s);
+$p = Python::f(Callable<(Int32)->DynamicLinear<Int32>>, $s);
+$c = Python::g(Callable<(DynamicLinear<Int32>)->Int32>, $s);
select $c($p(1));
diff --git a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail2.sql b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail2.sql
index 09610de9aa3..79e24c30267 100644
--- a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail2.sql
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail2.sql
@@ -18,9 +18,8 @@ def g(x,n):
return x.extract() + n
@@;
-$l = DynamicLinearType(Int32);
-$p = Python::f(Callable<(Int32)->$l>, $s);
-$c = Python::g(Callable<($l,Int32)->Int32>, $s);
+$p = Python::f(Callable<(Int32)->DynamicLinear<Int32>>, $s);
+$c = Python::g(Callable<(DynamicLinear<Int32>,Int32)->Int32>, $s);
$a = $p(1);
select $c($a,0),$c($a,1);