mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
Update docstrings in presto.py (#17623)
This commit is contained in:
parent
54b56fe12f
commit
ce92fc152b
@ -235,7 +235,6 @@ class PrestoEngineSpec(BaseEngineSpec): # pylint: disable=too-many-public-metho
|
||||
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
|
||||
"""
|
||||
@ -661,9 +660,7 @@ class PrestoEngineSpec(BaseEngineSpec): # pylint: disable=too-many-public-metho
|
||||
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}"
|
||||
|
Loading…
Reference in New Issue
Block a user