mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
fix: KeyError 'sql' when opening a Trino virtual dataset (#30339)
This commit is contained in:
committed by
GitHub
parent
9b87ca9209
commit
ef9e5e523d
@@ -17,7 +17,6 @@
|
||||
# pylint: disable=too-few-public-methods, too-many-arguments
|
||||
from __future__ import annotations
|
||||
|
||||
import copy
|
||||
import logging
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
@@ -152,8 +151,6 @@ class ExecuteSqlCommand(BaseCommand):
|
||||
self._validate_access(query)
|
||||
self._execution_context.set_query(query)
|
||||
rendered_query = self._sql_query_render.render(self._execution_context)
|
||||
validate_rendered_query = copy.copy(query)
|
||||
validate_rendered_query.sql = rendered_query
|
||||
self._set_query_limit_if_required(rendered_query)
|
||||
self._query_dao.update(
|
||||
query, {"limit": self._execution_context.query.limit}
|
||||
|
||||
Reference in New Issue
Block a user