fix: BigQuery get_parameters_from_uri (#20966)

This commit is contained in:
Beto Dealmeida
2022-08-03 17:27:40 -07:00
committed by GitHub
parent c33af83823
commit 7e501cd816
2 changed files with 19 additions and 1 deletions

View File

@@ -386,7 +386,9 @@ class BigQueryEngineSpec(BaseEngineSpec):
# Building parameters from encrypted_extra and uri
if encrypted_extra:
return {**encrypted_extra, "query": value.query}
# ``value.query`` needs to be explicitly converted into a dict (from an
# ``immutabledict``) so that it can be JSON serialized
return {**encrypted_extra, "query": dict(value.query)}
raise ValidationError("Invalid service credentials")