Skip to content

Commit

Permalink
fix function test
Browse files Browse the repository at this point in the history
  • Loading branch information
vrongmeal committed Jan 23, 2024
1 parent ae13f8f commit 4b8588f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions testdata/sqllogictests/catalog/functions.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ select
from glare_catalog.functions
where function_name = 'repeat';
----
repeat scalar (empty) t repeat('hello', 2) Repeat a string a specified number of times
repeat scalar [] t repeat('hello', 2) Repeat a string a specified number of times

# Assert an arbitrary datafusion aggregate function exists.
query TTTTTT
Expand All @@ -39,7 +39,7 @@ select
from glare_catalog.functions
where function_name = 'sum';
----
sum aggregate Int8/Int16/Int32/Int64/UInt8/UInt16/UInt32/UInt64/Float32/Float64 t sum(a) Returns the sum of a column
sum aggregate [Int8/Int16/Int32/Int64/UInt8/UInt16/UInt32/UInt64/Float32/Float64] t sum(a) Returns the sum of a column

# Assert an arbitrary glaredb table function exists.
query TTTTTT
Expand All @@ -53,7 +53,7 @@ select
from glare_catalog.functions
where function_name = 'read_parquet';
----
read_parquet table Utf8,Utf8, ,List<Utf8>,List<Utf8>, t SELECT * FROM read_parquet('./my_data.parquet') Returns a table by scanning the given Parquet file(s).
read_parquet table [Utf8, Utf8, , List<Utf8>, List<Utf8>, ] t SELECT * FROM read_parquet('./my_data.parquet') Returns a table by scanning the given Parquet file(s).

# Assert an arbitrary glaredb table function exists (using an alias).
query TTTTTT
Expand All @@ -67,7 +67,7 @@ select
from glare_catalog.functions
where function_name = 'parquet_scan';
----
parquet_scan table Utf8,Utf8, ,List<Utf8>,List<Utf8>, t SELECT * FROM read_parquet('./my_data.parquet') Returns a table by scanning the given Parquet file(s).
parquet_scan table [Utf8, Utf8, , List<Utf8>, List<Utf8>, ] t SELECT * FROM read_parquet('./my_data.parquet') Returns a table by scanning the given Parquet file(s).

# 'array_to_string' is a tricky one since we're aliasing 'array_to_string' to
# 'pg_catalog.array_to_string'. A more correct implementation would return two
Expand All @@ -85,4 +85,4 @@ select
from glare_catalog.functions
where function_name = 'array_to_string';
----
array_to_string scalar (empty) t array_to_string([1, 2, 3], ',') Convert an array to a string with a separator
array_to_string scalar [] t array_to_string([1, 2, 3], ',') Convert an array to a string with a separator

0 comments on commit 4b8588f

Please sign in to comment.