diff options
author | YDBot <[email protected]> | 2025-10-23 18:38:13 +0000 |
---|---|---|
committer | YDBot <[email protected]> | 2025-10-23 18:38:13 +0000 |
commit | 564cf7cb2255a107b4f44c18b2a1844041f20b4d (patch) | |
tree | 6a4a60e8bde612dcc3ac7fd93fffbd36351d4e35 /yql/essentials/udfs/common | |
parent | 89a17b25091c24744b7ebd0650b5b810457b1145 (diff) | |
parent | a703d86902fd02bd8e373d959b2498c034657449 (diff) |
Diffstat (limited to 'yql/essentials/udfs/common')
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); |