mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[hotfix] only apply SQLAlchemy limit where needed
Observed issue in dev environment where SQL queries were emitted with `LIMIT 0`. This fix addresses it.
This commit is contained in:
parent
d3ace6d63f
commit
85fb4a933d
@ -515,6 +515,7 @@ class SqlaTable(Model, BaseDatasource):
|
||||
direction = asc if ascending else desc
|
||||
qry = qry.order_by(direction(col))
|
||||
|
||||
if row_limit:
|
||||
qry = qry.limit(row_limit)
|
||||
|
||||
if is_timeseries and \
|
||||
|
Loading…
Reference in New Issue
Block a user