From a8e84b7974ba5e7359c92f6f4026ec6cff29f857 Mon Sep 17 00:00:00 2001 From: Michael Xu Date: Fri, 2 Feb 2024 10:15:29 -0500 Subject: [PATCH] change anonymous to unnamed --- e2e_test/udf/sql_udf.slt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e_test/udf/sql_udf.slt b/e2e_test/udf/sql_udf.slt index ec4ff3abf87bd..c2e53de46f7eb 100644 --- a/e2e_test/udf/sql_udf.slt +++ b/e2e_test/udf/sql_udf.slt @@ -5,7 +5,7 @@ SET RW_IMPLICIT_FLUSH TO true; # Basic tests for sql udf with unnamed / named parameters # ########################################################### -# Create an anonymous function with double dollar as clause +# Create an unnamed function with double dollar as clause statement ok create function add(INT, INT) returns int language sql as $$select $1 + $2$$; @@ -14,7 +14,7 @@ select add(1, -1); ---- 0 -# Create an anonymous function with single quote as clause +# Create an unnamed function with single quote as clause statement ok create function sub(INT, INT) returns int language sql as 'select $1 - $2'; @@ -23,7 +23,7 @@ select sub(1, 1); ---- 0 -# Create an anonymous function that calls other pre-defined sql udfs +# Create an unnamed function that calls other pre-defined sql udfs statement ok create function add_sub_binding() returns int language sql as 'select add(1, 1) + sub(2, 2)'; @@ -74,7 +74,7 @@ select add_named_wrapper(1, -1); ---- 0 -# Create an anonymous function with return expression +# Create an unnamed function with return expression statement ok create function add_return(INT, INT) returns int language sql return $1 + $2; @@ -221,7 +221,7 @@ select corner_case(1, 2, 3); ---- $1 + a + $3 -# Create an anonymous function that calls built-in functions +# Create an unnamed function that calls built-in functions # Note that double dollar signs should be used otherwise the parsing will fail, as illutrates below statement ok create function call_regexp_replace() returns varchar language sql as $$select regexp_replace('💩💩💩💩💩foo🤔️bar亲爱的😭baz这不是爱情❤️‍🔥', 'baz(...)', '这是🥵', 'ic')$$; @@ -313,7 +313,7 @@ create function fib(INT) returns int statement error failed to conduct semantic check, please see if you are calling non-existent functions create function non_exist(INT) returns int language sql as 'select yo(114514)'; -# Try to create an anonymous sql udf whose return type mismatches with the sql body definition +# Try to create an unnamed sql udf whose return type mismatches with the sql body definition statement error return type mismatch detected create function type_mismatch(INT) returns varchar language sql as 'select $1 + 114514 + $1';