mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: BigQuery get_parameters_from_uri (#20966)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user