From 3b1a6efeaf16d6c0036be85dc0c5638a7011c06c Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 16 Apr 2024 07:41:52 -0400 Subject: [PATCH] fix(snowflake): set con outside of `_setup_session` call (#8979) Fixes the failing Snowflake tests in CI. --- ibis/backends/snowflake/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/backends/snowflake/__init__.py b/ibis/backends/snowflake/__init__.py index 44a3ff2b6d67..3cb1f07603bd 100644 --- a/ibis/backends/snowflake/__init__.py +++ b/ibis/backends/snowflake/__init__.py @@ -216,8 +216,8 @@ def do_connect(self, create_object_udfs: bool = True, **kwargs: Any): connect_args = kwargs.copy() session_parameters = connect_args.pop("session_parameters", {}) + self.con = sc.connect(**connect_args) self._setup_session( - con=sc.connect(**connect_args), session_parameters=session_parameters, create_object_udfs=create_object_udfs, )