mirror of https://github.com/apache/superset.git
fix(sqla): allow series limit without subquery support (#16896)
This commit is contained in:
parent
3f784cc1c7
commit
3272d1c086
|
@ -1292,8 +1292,8 @@ class SqlaTable(Model, BaseDatasource): # pylint: disable=too-many-public-metho
|
|||
if row_offset:
|
||||
qry = qry.offset(row_offset)
|
||||
|
||||
if db_engine_spec.allows_subqueries and series_limit and groupby_series_columns:
|
||||
if db_engine_spec.allows_joins:
|
||||
if series_limit and groupby_series_columns:
|
||||
if db_engine_spec.allows_joins and db_engine_spec.allows_subqueries:
|
||||
# some sql dialects require for order by expressions
|
||||
# to also be in the select clause -- others, e.g. vertica,
|
||||
# require a unique inner alias
|
||||
|
|
Loading…
Reference in New Issue