Skip to content

Commit

Permalink
test: use from_connection in snowflake udf test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 24, 2024
1 parent 6c21775 commit f5769cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/snowflake/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def connect(*, tmpdir, worker_id, **kw) -> BaseBackend:
"schema": os.environ["SNOWFLAKE_SCHEMA"],
}
)
return ibis.backends.snowflake.Backend.from_snowpark(builder.create())
return ibis.backends.snowflake.Backend.from_connection(builder.create())
else:
return ibis.connect(_get_url(), **kw)

Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/snowflake/tests/test_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_ibis_inside_snowpark(snowpark_session, execute_as):
def ibis_sproc(session):
import ibis.backends.snowflake

con = ibis.backends.snowflake.Backend.from_snowpark(session)
con = ibis.backends.snowflake.Backend.from_connection(session)

expr = (
con.tables.functional_alltypes.group_by("string_col")
Expand Down

0 comments on commit f5769cb

Please sign in to comment.