You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2019/10/15 18:38:55 UTC

[incubator-superset] branch bypass_display_limit created (now 7db65e2)

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

beto pushed a change to branch bypass_display_limit
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


      at 7db65e2  Allow bypassing DISPLAY_MAX_ROW

This branch includes the following new commits:

     new 853e157  Merge pull request #71 from apache/fix_array_no_data
     new 7db65e2  Allow bypassing DISPLAY_MAX_ROW

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-superset] 01/02: Merge pull request #71 from apache/fix_array_no_data

Posted by be...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch bypass_display_limit
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 853e157cb99b1a3b68f2096458f153f8099f7e3f
Merge: 60f11fd 0717f65
Author: Beto Dealmeida <bd...@lyft.com>
AuthorDate: Mon Sep 30 20:23:39 2019 +0200

    Merge pull request #71 from apache/fix_array_no_data
    
    Fix no data in Presto (#8268)

 superset/dataframe.py   |  4 +++-
 tests/dataframe_test.py | 21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)


[incubator-superset] 02/02: Allow bypassing DISPLAY_MAX_ROW

Posted by be...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch bypass_display_limit
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 7db65e27a75afb5d93a6a2bdbf55cfec95904ae7
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Mon Oct 14 10:58:50 2019 -0700

    Allow bypassing DISPLAY_MAX_ROW
---
 superset/views/core.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index a9f6877..12afc08 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2504,12 +2504,11 @@ class Superset(BaseSupersetView):
         payload = utils.zlib_decompress(blob, decode=not results_backend_use_msgpack)
         obj = _deserialize_results_payload(payload, query, results_backend_use_msgpack)
 
+        if not request.args.get("bypass_display_limit"):
+            obj = apply_display_max_row_limit(obj)
+
         return json_success(
-            json.dumps(
-                apply_display_max_row_limit(obj),
-                default=utils.json_iso_dttm_ser,
-                ignore_nan=True,
-            )
+            json.dumps(obj, default=utils.json_iso_dttm_ser, ignore_nan=True)
         )
 
     @has_access_api