mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
@@ -59,7 +59,13 @@ from superset.models.helpers import (
|
||||
)
|
||||
from superset.sql_parse import CtasMethod, extract_tables_from_jinja_sql, Table
|
||||
from superset.sqllab.limiting_factor import LimitingFactor
|
||||
from superset.utils.core import get_column_name, MediumText, QueryStatus, user_label
|
||||
from superset.utils.core import (
|
||||
get_column_name,
|
||||
LongText,
|
||||
MediumText,
|
||||
QueryStatus,
|
||||
user_label,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from superset.connectors.sqla.models import TableColumn
|
||||
@@ -110,11 +116,11 @@ class Query(
|
||||
sql_editor_id = Column(String(256), index=True)
|
||||
schema = Column(String(256))
|
||||
catalog = Column(String(256), nullable=True, default=None)
|
||||
sql = Column(MediumText())
|
||||
sql = Column(LongText())
|
||||
# Query to retrieve the results,
|
||||
# used only in case of select_as_cta_used is true.
|
||||
select_sql = Column(MediumText())
|
||||
executed_sql = Column(MediumText())
|
||||
select_sql = Column(LongText())
|
||||
executed_sql = Column(LongText())
|
||||
# Could be configured in the superset config.
|
||||
limit = Column(Integer)
|
||||
limiting_factor = Column(
|
||||
|
||||
Reference in New Issue
Block a user