Skip to content

Commit

Permalink
async queries limit bug (#20468)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c16be4)
  • Loading branch information
AAfghahi authored and michael-s-molina committed Jun 28, 2022
1 parent 3d85042 commit d789f37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/sqllab/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def _run_sql_json_exec_from_scratch(self) -> SqlJsonExecutionStatus:
self._execution_context.set_query(query)
rendered_query = self._sql_query_render.render(self._execution_context)
self._set_query_limit_if_required(rendered_query)
self._query_dao.update(
query, {"limit": self._execution_context.query.limit}
)
return self._sql_json_executor.execute(
self._execution_context, rendered_query, self._log_params
)
Expand Down

0 comments on commit d789f37

Please sign in to comment.