From 5d7b76b789e6b2cf97c956afa791e94f1232feb2 Mon Sep 17 00:00:00 2001 From: Saulius Beinorius Date: Mon, 9 Oct 2023 10:51:29 +0300 Subject: [PATCH] Add fallthrough for unknown parameters --- src/snowflake/sqlalchemy/snowdialect.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/snowflake/sqlalchemy/snowdialect.py b/src/snowflake/sqlalchemy/snowdialect.py index ecc0f287..fa492509 100644 --- a/src/snowflake/sqlalchemy/snowdialect.py +++ b/src/snowflake/sqlalchemy/snowdialect.py @@ -234,7 +234,12 @@ def create_connect_args(self, url: URL): ) for name, value in query.items(): - (_, expected_type) = DEFAULT_CONFIGURATION[name] + maybe_type_configuration = DEFAULT_CONFIGURATION.get(name) + if not maybe_type_configuration: + opts[name] = value + continue + + (_, expected_type) = maybe_type_configuration if not isinstance(expected_type, tuple): expected_type = (expected_type,)