diff --git a/target_snowflake/connector.py b/target_snowflake/connector.py index 74f3e73..0e4fe31 100644 --- a/target_snowflake/connector.py +++ b/target_snowflake/connector.py @@ -218,6 +218,7 @@ def create_engine(self) -> Engine: "session_parameters": { "QUOTED_IDENTIFIERS_IGNORE_CASE": "TRUE", }, + "client_session_keep_alive": True, # See https://github.com/snowflakedb/snowflake-connector-python/issues/218 } if self.auth_method == SnowflakeAuthMethod.KEY_PAIR: connect_args["private_key"] = self.get_private_key()