File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -160,18 +160,9 @@ def build_connection(self):
160160 module = "snowflake.connector.config_manager" ,
161161 )
162162
163- # Get connection parameters but exclude connection_name
164- # The Snowflake connector validates connection_name against its own
165- # config manager (only reads config.toml), which doesn't know about
166- # connections from SnowSQL config files. We handle connection resolution
167- # ourselves, so don't let the connector validate it.
163+ # Get connection parameters and pass them directly to connect_to_snowflake
164+ # This restores the original behavior before the change that enforced temporary_connection
168165 conn_params = self .present_values_as_dict ()
169- conn_params .pop ("connection_name" , None )
170-
171- # If we removed connection_name, mark as temporary_connection
172- # so the connector doesn't require it
173- if "connection_name" not in conn_params :
174- conn_params ["temporary_connection" ] = True
175166
176167 return connect_to_snowflake (** conn_params )
177168
You can’t perform that action at this time.
0 commit comments