mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
feat(sqlparse): improve table parsing (#26476)
(cherry picked from commit c0b57bd1c3)
This commit is contained in:
committed by
Michael S. Molina
parent
6cdaf479f2
commit
1d9cfdabd1
@@ -115,7 +115,10 @@ class SqlResultExportCommand(BaseCommand):
|
||||
limit = None
|
||||
else:
|
||||
sql = self._query.executed_sql
|
||||
limit = ParsedQuery(sql).limit
|
||||
limit = ParsedQuery(
|
||||
sql,
|
||||
engine=self._query.database.db_engine_spec.engine,
|
||||
).limit
|
||||
if limit is not None and self._query.limiting_factor in {
|
||||
LimitingFactor.QUERY,
|
||||
LimitingFactor.DROPDOWN,
|
||||
|
||||
Reference in New Issue
Block a user