Skip to content

Commit

Permalink
upgrade function number
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Dec 27, 2024
1 parent 635ddd7 commit f7998b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ibis-server/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def file_path(path: str) -> str:
return os.path.join(os.path.dirname(__file__), path)


DATAFUSION_FUNCTION_COUNT = 270
DATAFUSION_FUNCTION_COUNT = 271


@pytest.fixture(scope="session")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def test_function_list(client):
response = await client.get(url=f"{base_url}/functions")
assert response.status_code == 200
result = response.json()
assert len(result) == DATAFUSION_FUNCTION_COUNT + 35
assert len(result) == DATAFUSION_FUNCTION_COUNT + 34
the_func = next(filter(lambda x: x["name"] == "extract", result))
assert the_func == {
"name": "extract",
Expand Down
4 changes: 2 additions & 2 deletions wren-core-py/tests/test_modeling_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_read_function_list():
path = "tests/functions.csv"
session_context = SessionContext(manifest_str, path)
functions = session_context.get_available_functions()
assert len(functions) == 272
assert len(functions) == 273

rewritten_sql = session_context.transform_sql(
"SELECT add_two(c_custkey) FROM my_catalog.my_schema.customer"
Expand All @@ -118,7 +118,7 @@ def test_read_function_list():

session_context = SessionContext(manifest_str, None)
functions = session_context.get_available_functions()
assert len(functions) == 270
assert len(functions) == 271


def test_get_available_functions():
Expand Down

0 comments on commit f7998b5

Please sign in to comment.