Skip to content

Commit

Permalink
and encoding for snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Jan 13, 2022
1 parent 1170ad0 commit 9fcfc46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/db_engine_specs/snowflake.py
Expand Up @@ -27,6 +27,7 @@
from sqlalchemy.engine.url import make_url, URL
from typing_extensions import TypedDict

from superset.databases.utils import encode_parameters
from superset.db_engine_specs.postgres import PostgresBaseEngineSpec
from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
from superset.models.sql_lab import Query
Expand Down Expand Up @@ -198,6 +199,9 @@ def build_sqlalchemy_uri(
] = None,
) -> str:

# encode parameters
parameters = encode_parameters(parameters) # type: ignore

return str(
URL(
"snowflake",
Expand Down

0 comments on commit 9fcfc46

Please sign in to comment.