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 <[email protected]>
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

Reply via email to