You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2022/01/11 20:49:33 UTC

[superset] branch master updated: fix: Adhere to series limit ordering for prequery (#17388)

This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ce614ea  fix: Adhere to series limit ordering for prequery (#17388)
ce614ea is described below

commit ce614ea815db492cd88f53918daea6dcdd7ddedc
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Wed Jan 12 09:47:31 2022 +1300

    fix: Adhere to series limit ordering for prequery (#17388)
    
    Co-authored-by: John Bodley <jo...@airbnb.com>
---
 superset/connectors/sqla/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py
index 9200ac5..2251693 100644
--- a/superset/connectors/sqla/models.py
+++ b/superset/connectors/sqla/models.py
@@ -1438,7 +1438,7 @@ class SqlaTable(Model, BaseDatasource):  # pylint: disable=too-many-public-metho
                             self._get_series_orderby(
                                 series_limit_metric, metrics_by_name, columns_by_name,
                             ),
-                            False,
+                            not order_desc,
                         )
                     ]