Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/firebolt_db/firebolt_dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def create_connect_args(self, url: URL) -> Tuple[List, Dict]:
additional_parameters = {}
if "account_name" in parameters:
kwargs["account_name"] = parameters.pop("account_name")
else:
elif isinstance(auth, ClientCredentials):
# account_name is required for client credentials authentication
raise ArgumentError(
"account_name parameter must be provided to authenticate"
)
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_firebolt_dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_create_dialect(self, dialect: FireboltDialect):
def test_create_connect_args_user_password(self, dialect: FireboltDialect):
u = url.make_url(
"test_engine://test-sa@user.com:test_password@test_db_name/test_engine_name"
"?account_name=dummy"
)
with mock.patch.dict(os.environ, {"FIREBOLT_BASE_URL": "test_url"}):
result_list, result_dict = dialect.create_connect_args(u)
Expand Down