Vitor-Avila commented on code in PR #36274:
URL: https://github.com/apache/superset/pull/36274#discussion_r2577825921
##########
superset/common/query_context_processor.py:
##########
@@ -267,17 +271,28 @@ def ensure_totals_available(self) -> None:
is_totals_query = (
not query.columns and query.metrics and not
query.post_processing
)
- if is_totals_query:
- totals_queries.append(i)
+ if is_totals_query and totals_idx is None:
+ totals_idx = i
+
+ if queries_needing_totals and totals_idx is not None:
+ totals_query = self._query_context.queries[totals_idx]
+ totals_query.row_limit = None
Review Comment:
gotcha, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]