aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites
diff options
context:
space:
mode:
authoravevad <avevad@yandex-team.com>2024-12-11 14:21:36 +0300
committerVitaly Isaev <vitalyisaev@ydb.tech>2024-12-12 10:12:06 +0000
commit0f512bb21b67e34519e7f78de3a792091d7760e4 (patch)
tree860429f764510f9d6366de33a66ea2284f27f77b /yql/essentials/tests/sql/suites
parentab4ac36b6b8137f19724a1c8954d30374d1db47d (diff)
downloadydb-0f512bb21b67e34519e7f78de3a792091d7760e4.tar.gz
YQL-19123 Move default argument in VisitOrDefault
Change order of arguments in VisitOrDefault commit_hash:60f1e45096fa62bca6c999fb14abf81754f51e1a
Diffstat (limited to 'yql/essentials/tests/sql/suites')
-rw-r--r--yql/essentials/tests/sql/suites/expr/variant_builtins_opt.sql2
-rw-r--r--yql/essentials/tests/sql/suites/expr/variant_tuple_builtins.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/yql/essentials/tests/sql/suites/expr/variant_builtins_opt.sql b/yql/essentials/tests/sql/suites/expr/variant_builtins_opt.sql
index 443802fe56..3d28d3f09a 100644
--- a/yql/essentials/tests/sql/suites/expr/variant_builtins_opt.sql
+++ b/yql/essentials/tests/sql/suites/expr/variant_builtins_opt.sql
@@ -21,6 +21,6 @@ $var_2 = Variant("8", "1", $vartype_t);
SELECT
Visit(Just($var_1), $handle_a, $handle_b),
Visit(Just($var_2), $handle_a, $handle_b),
- VisitOrDefault(Just($var_2), $handle_a, Just(777u)),
+ VisitOrDefault(Just($var_2), Just(777u), $handle_a),
VariantItem(Just($var_b))
;
diff --git a/yql/essentials/tests/sql/suites/expr/variant_tuple_builtins.sql b/yql/essentials/tests/sql/suites/expr/variant_tuple_builtins.sql
index 35d1775708..075f061974 100644
--- a/yql/essentials/tests/sql/suites/expr/variant_tuple_builtins.sql
+++ b/yql/essentials/tests/sql/suites/expr/variant_tuple_builtins.sql
@@ -12,7 +12,7 @@ SELECT
$visitor(NULL)
;
-$visitor_def = ($var) -> { return VisitOrDefault($var, $handle_num, $handle_flag, 999); };
+$visitor_def = ($var) -> { return VisitOrDefault($var, 999, $handle_num, $handle_flag); };
SELECT
$visitor_def(Variant(5, "0", $vartype)),
$visitor_def(Just(Variant(True, "1", $vartype))),