From 930cf960366b368daf9bad615a224e683092c79c Mon Sep 17 00:00:00 2001 From: coldWater Date: Tue, 24 Sep 2024 17:23:35 +0800 Subject: [PATCH] test Signed-off-by: coldWater --- .typos.toml | 1 + .../functions/tests/it/scalars/testdata/function_list.txt | 2 ++ .../suites/query/functions/02_0078_function_to_char.test | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 tests/sqllogictests/suites/query/functions/02_0078_function_to_char.test diff --git a/.typos.toml b/.typos.toml index 6cf9781affdc..d6c6fcd09e1d 100644 --- a/.typos.toml +++ b/.typos.toml @@ -12,6 +12,7 @@ "ser" = "ser" "Ser" = "Ser" "flate" = "flate" +"Tke" = "Tke" [files] extend-exclude = [ diff --git a/src/query/functions/tests/it/scalars/testdata/function_list.txt b/src/query/functions/tests/it/scalars/testdata/function_list.txt index 862816ad1205..06620c824efa 100644 --- a/src/query/functions/tests/it/scalars/testdata/function_list.txt +++ b/src/query/functions/tests/it/scalars/testdata/function_list.txt @@ -3726,6 +3726,8 @@ Functions overloads: 21 to_boolean(Float32 NULL) :: Boolean NULL 22 to_boolean(Float64) :: Boolean 23 to_boolean(Float64 NULL) :: Boolean NULL +0 to_char(Int32, String) :: String +1 to_char(Int32 NULL, String NULL) :: String NULL 0 to_date(Variant) :: Date 1 to_date(Variant NULL) :: Date NULL 2 to_date(String, String) :: Date NULL diff --git a/tests/sqllogictests/suites/query/functions/02_0078_function_to_char.test b/tests/sqllogictests/suites/query/functions/02_0078_function_to_char.test new file mode 100644 index 000000000000..192a4ac20697 --- /dev/null +++ b/tests/sqllogictests/suites/query/functions/02_0078_function_to_char.test @@ -0,0 +1,4 @@ +query T +select to_char(123,'0099'); +---- + 0123 \ No newline at end of file