Skip to content

Commit

Permalink
Update docstrings in presto.py (#17623)
Browse files Browse the repository at this point in the history
  • Loading branch information
PApostol committed Dec 2, 2021
1 parent 54b56fe commit ce92fc1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions superset/db_engine_specs/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def update_impersonation_config(
that can set the correct properties for impersonating users
:param connect_args: config to be updated
:param uri: URI string
:param impersonate_user: Flag indicating if impersonation is enabled
:param username: Effective username
:return: None
"""
Expand Down Expand Up @@ -661,9 +660,7 @@ def estimate_statement_cost(cls, statement: str, cursor: Any) -> Dict[str, Any]:
Run a SQL query that estimates the cost of a given statement.
:param statement: A single SQL statement
:param database: Database instance
:param cursor: Cursor instance
:param username: Effective username
:return: JSON response from Presto
"""
sql = f"EXPLAIN (TYPE IO, FORMAT JSON) {statement}"
Expand Down

0 comments on commit ce92fc1

Please sign in to comment.