Skip to content

Commit

Permalink
Add default values to schema/catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Mar 17, 2023
1 parent 0835da1 commit 2db69f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions superset/db_engine_specs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,8 @@ def adjust_engine_params( # pylint: disable=unused-argument
cls,
uri: URL,
connect_args: Dict[str, Any],
catalog: Optional[str],
schema: Optional[str],
catalog: Optional[str] = None,
schema: Optional[str] = None,
) -> Tuple[URL, Dict[str, Any]]:
"""
Return a new URL and ``connect_args`` for a specific catalog/schema.
Expand Down
4 changes: 2 additions & 2 deletions superset/db_engine_specs/drill.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def adjust_engine_params(
cls,
uri: URL,
connect_args: Dict[str, Any],
catalog: Optional[str],
schema: Optional[str],
catalog: Optional[str] = None,
schema: Optional[str] = None,
) -> Tuple[URL, Dict[str, Any]]:
if schema:
uri = uri.set(database=parse.quote(schema.replace(".", "/"), safe=""))
Expand Down

0 comments on commit 2db69f2

Please sign in to comment.