Skip to content

Commit

Permalink
allow for query params
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Jun 17, 2021
1 parent cbbcf1b commit c32a387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/db_engine_specs/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from flask_babel import gettext as __
from marshmallow import Schema
from marshmallow import fields, Schema
from sqlalchemy import literal_column
from sqlalchemy.sql.expression import ColumnClause
from typing_extensions import TypedDict
Expand Down Expand Up @@ -51,10 +51,12 @@ class BigQueryParametersSchema(Schema):
credentials_info = EncryptedField(
required=False, description="Contents of BigQuery JSON credentials.",
)
query = fields.Dict(required=False)


class BigQueryParametersType(TypedDict):
credentials_info: Dict[str, Any]
query: Dict[str, Any]


class BigQueryEngineSpec(BaseEngineSpec):
Expand Down

0 comments on commit c32a387

Please sign in to comment.