mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(15403): Re-enable canceling query for Hive and Presto (#15878)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -1305,6 +1305,18 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
)
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
def has_implicit_cancel(cls) -> bool:
|
||||
"""
|
||||
Return True if the live cursor handles the implicit cancelation of the query,
|
||||
False otherise.
|
||||
|
||||
:return: Whether the live cursor implicitly cancels the query
|
||||
:see: handle_cursor
|
||||
"""
|
||||
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def get_cancel_query_id(cls, cursor: Any, query: Query) -> Optional[str]:
|
||||
"""
|
||||
@@ -1316,6 +1328,7 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
:param query: Query instance
|
||||
:return: Query identifier
|
||||
"""
|
||||
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
@@ -1330,6 +1343,8 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
:return: True if query cancelled successfully, False otherwise
|
||||
"""
|
||||
|
||||
return False
|
||||
|
||||
|
||||
# schema for adding a database by providing parameters instead of the
|
||||
# full SQLAlchemy URI
|
||||
|
||||
Reference in New Issue
Block a user