aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/udf
diff options
context:
space:
mode:
authorMaxim Yurchuk <maxim-yurchuk@ydb.tech>2024-11-24 18:29:03 +0000
committerGitHub <noreply@github.com>2024-11-24 18:29:03 +0000
commitd07a4859aa083d0e7cf47020da9036f176f61d00 (patch)
tree5f3772c6600fcc5737420bf7874bb89833b35b00 /yql/essentials/tests/sql/suites/udf
parent398fb410adba8fede893681a5e67a809f02d0750 (diff)
parent9002c47536c0c2d348b001535c540667e7910b65 (diff)
downloadydb-d07a4859aa083d0e7cf47020da9036f176f61d00.tar.gz
Merge pull request #11909 from ydb-platform/mergelibs-241123-2111HEADmain
Library import 241123-2111
Diffstat (limited to 'yql/essentials/tests/sql/suites/udf')
-rw-r--r--yql/essentials/tests/sql/suites/udf/named_args_for_script_with_posargs_reuse_args_fail.sql3
-rw-r--r--yql/essentials/tests/sql/suites/udf/python_struct.cfg2
-rw-r--r--yql/essentials/tests/sql/suites/udf/python_struct.sql2
-rw-r--r--yql/essentials/tests/sql/suites/udf/wrong_args_fail.sql1
4 files changed, 4 insertions, 4 deletions
diff --git a/yql/essentials/tests/sql/suites/udf/named_args_for_script_with_posargs_reuse_args_fail.sql b/yql/essentials/tests/sql/suites/udf/named_args_for_script_with_posargs_reuse_args_fail.sql
index 21f66fa806..7efb78e427 100644
--- a/yql/essentials/tests/sql/suites/udf/named_args_for_script_with_posargs_reuse_args_fail.sql
+++ b/yql/essentials/tests/sql/suites/udf/named_args_for_script_with_posargs_reuse_args_fail.sql
@@ -1,5 +1,4 @@
-/* postgres can not */
-/* syntax version 1 */
+/* custom error:Argument with name age was already used for positional argument #2*/
use plato;
$udfScript = @@
def AppendInfo(a_name, a_age = None, a_region = None):
diff --git a/yql/essentials/tests/sql/suites/udf/python_struct.cfg b/yql/essentials/tests/sql/suites/udf/python_struct.cfg
index d86459a8db..3c11f9c54b 100644
--- a/yql/essentials/tests/sql/suites/udf/python_struct.cfg
+++ b/yql/essentials/tests/sql/suites/udf/python_struct.cfg
@@ -1,3 +1,3 @@
in Input input.txt
-udf python2_udf
+udf python3_udf
providers yt
diff --git a/yql/essentials/tests/sql/suites/udf/python_struct.sql b/yql/essentials/tests/sql/suites/udf/python_struct.sql
index ed7fc8eeb3..82e43427d2 100644
--- a/yql/essentials/tests/sql/suites/udf/python_struct.sql
+++ b/yql/essentials/tests/sql/suites/udf/python_struct.sql
@@ -15,7 +15,7 @@ def NewPerson(name, age):
(let str (DataType 'String))
(let personType (StructType '('name str) '('age ui32)))
(let udfType (CallableType '() '(personType) '(str) '(ui32)))
- (let udf (ScriptUdf 'Python 'NewPerson udfType $udfScript))
+ (let udf (ScriptUdf 'Python3 'NewPerson udfType $udfScript))
(return udf)
))@@;
diff --git a/yql/essentials/tests/sql/suites/udf/wrong_args_fail.sql b/yql/essentials/tests/sql/suites/udf/wrong_args_fail.sql
index 759bfd3816..eed17d5589 100644
--- a/yql/essentials/tests/sql/suites/udf/wrong_args_fail.sql
+++ b/yql/essentials/tests/sql/suites/udf/wrong_args_fail.sql
@@ -1,4 +1,5 @@
/* postgres can not */
+/* custom error:Callable expected at most 3 argument(s)*/
-- Find has optional args
select String::ReplaceAll(); -- too few