Skip to content

Commit

Permalink
Fixed v3 test cases for Snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
ongdisheng committed Nov 10, 2024
1 parent 64c63e9 commit 5a9c329
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ def test_function_list():
assert response.status_code == 200
result = response.json()
assert len(result) == 427
the_func = next(filter(lambda x: x["name"] == "abs", result))
the_func = next(filter(lambda x: x["name"] == "ABS", result))
assert the_func == {
"name": "abs",
"description": "Returns absolute value of the argument",
"name": "ABS",
"description": "Returns absolute value",
"function_type": "scalar",
"param_names": None,
"param_types": None,
"return_type": "double",
"return_type": "number",
}

config.set_remote_function_list_path(None)
Expand All @@ -86,9 +86,9 @@ def test_scalar_function(manifest_str: str, connection_info):
assert response.status_code == 200
result = response.json()
assert result == {
"columns": ["col"],
"columns": ["COL"],
"data": [[1]],
"dtypes": {"col": "int32"},
"dtypes": {"COL": "int64"},
}

def test_aggregate_function(manifest_str: str, connection_info):
Expand All @@ -103,7 +103,7 @@ def test_aggregate_function(manifest_str: str, connection_info):
assert response.status_code == 200
result = response.json()
assert result == {
"columns": ["col"],
"columns": ["COL"],
"data": [[1]],
"dtypes": {"col": "int64"},
"dtypes": {"COL": "int64"},
}

0 comments on commit 5a9c329

Please sign in to comment.