mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
fix: KeyError 'sql' when opening a Trino virtual dataset (#30339)
This commit is contained in:
committed by
GitHub
parent
9b87ca9209
commit
ef9e5e523d
@@ -90,7 +90,6 @@ class SynchronousSqlJsonExecutor(SqlJsonExecutorBase):
|
||||
rendered_query: str,
|
||||
log_params: dict[str, Any] | None,
|
||||
) -> SqlJsonExecutionStatus:
|
||||
print(">>> execute <<<")
|
||||
query_id = execution_context.query.id
|
||||
try:
|
||||
data = self._get_sql_results_with_timeout(
|
||||
@@ -102,7 +101,6 @@ class SynchronousSqlJsonExecutor(SqlJsonExecutorBase):
|
||||
raise
|
||||
except Exception as ex:
|
||||
logger.exception("Query %i failed unexpectedly", query_id)
|
||||
print(str(ex))
|
||||
raise SupersetGenericDBErrorException(
|
||||
utils.error_msg_from_exception(ex)
|
||||
) from ex
|
||||
|
||||
Reference in New Issue
Block a user