mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(sql lab): display presto and trino tracking url (#20799)
This commit is contained in:
@@ -96,8 +96,13 @@ def handle_query_error(
|
||||
msg = f"{prefix_message} {str(ex)}".strip()
|
||||
troubleshooting_link = config["TROUBLESHOOTING_LINK"]
|
||||
query.error_message = msg
|
||||
query.status = QueryStatus.FAILED
|
||||
query.tmp_table_name = None
|
||||
query.status = QueryStatus.FAILED
|
||||
# TODO: re-enable this after updating the frontend to properly display timeout status
|
||||
# if query.status != QueryStatus.TIMED_OUT:
|
||||
# query.status = QueryStatus.FAILED
|
||||
if not query.end_time:
|
||||
query.end_time = now_as_float()
|
||||
|
||||
# extract DB-specific errors (invalid column, eg)
|
||||
if isinstance(ex, SupersetErrorException):
|
||||
@@ -286,6 +291,8 @@ def execute_sql_statement( # pylint: disable=too-many-arguments,too-many-statem
|
||||
# return 1 row less than increased_query
|
||||
data = data[:-1]
|
||||
except SoftTimeLimitExceeded as ex:
|
||||
query.status = QueryStatus.TIMED_OUT
|
||||
|
||||
logger.warning("Query %d: Time limit exceeded", query.id)
|
||||
logger.debug("Query %d: %s", query.id, ex)
|
||||
raise SupersetErrorException(
|
||||
|
||||
Reference in New Issue
Block a user