@@ -58,14 +58,14 @@ def test_function_list():
58
58
assert response .status_code == 200
59
59
result = response .json ()
60
60
assert len (result ) == 427
61
- the_func = next (filter (lambda x : x ["name" ] == "abs " , result ))
61
+ the_func = next (filter (lambda x : x ["name" ] == "ABS " , result ))
62
62
assert the_func == {
63
- "name" : "abs " ,
64
- "description" : "Returns absolute value of the argument " ,
63
+ "name" : "ABS " ,
64
+ "description" : "Returns absolute value" ,
65
65
"function_type" : "scalar" ,
66
66
"param_names" : None ,
67
67
"param_types" : None ,
68
- "return_type" : "double " ,
68
+ "return_type" : "number " ,
69
69
}
70
70
71
71
config .set_remote_function_list_path (None )
@@ -86,9 +86,9 @@ def test_scalar_function(manifest_str: str, connection_info):
86
86
assert response .status_code == 200
87
87
result = response .json ()
88
88
assert result == {
89
- "columns" : ["col " ],
89
+ "columns" : ["COL " ],
90
90
"data" : [[1 ]],
91
- "dtypes" : {"col " : "int32 " },
91
+ "dtypes" : {"COL " : "int64 " },
92
92
}
93
93
94
94
def test_aggregate_function (manifest_str : str , connection_info ):
@@ -103,7 +103,7 @@ def test_aggregate_function(manifest_str: str, connection_info):
103
103
assert response .status_code == 200
104
104
result = response .json ()
105
105
assert result == {
106
- "columns" : ["col " ],
106
+ "columns" : ["COL " ],
107
107
"data" : [[1 ]],
108
- "dtypes" : {"col " : "int64" },
108
+ "dtypes" : {"COL " : "int64" },
109
109
}
0 commit comments