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 f7bc8aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions superset/databases/utils.py
Expand Up @@ -18,6 +18,7 @@
from typing import Any, Dict, List, Optional

from superset import app
from superset.db_engine_specs.snowflake import SnowflakeParametersSchema
from superset.models.core import Database

custom_password_store = app.config["SQLALCHEMY_CUSTOM_PASSWORD_STORE"]
Expand Down
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 f7bc8aa

Please sign in to comment.