From 3e21f3c70b19e28ec492aef848b214321246ca29 Mon Sep 17 00:00:00 2001 From: Zane Clark Date: Thu, 14 Nov 2024 20:21:10 -0800 Subject: [PATCH] fix: avoid overwriting connection args with none cli args --- schemachange/session/SnowflakeSession.py | 1 + 1 file changed, 1 insertion(+) diff --git a/schemachange/session/SnowflakeSession.py b/schemachange/session/SnowflakeSession.py index 4531db1..02c3b22 100644 --- a/schemachange/session/SnowflakeSession.py +++ b/schemachange/session/SnowflakeSession.py @@ -79,6 +79,7 @@ def __init__( "application": application, "session_parameters": self.session_parameters, } + connect_kwargs = {k: v for k, v in connect_kwargs.items() if v is not None} self.logger.debug("snowflake.connector.connect kwargs", **connect_kwargs) self.con = snowflake.connector.connect(**connect_kwargs) print(f"Current session ID: {self.con.session_id}")