Skip to content

Commit

Permalink
Merge pull request #72 from lyft/bypass_display_limit
Browse files Browse the repository at this point in the history
Allow bypassing DISPLAY_MAX_ROW
  • Loading branch information
Beto Dealmeida authored Oct 15, 2019
2 parents 853e157 + 7db65e2 commit a25b3c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2504,12 +2504,11 @@ def results_call(self, key):
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
Expand Down

0 comments on commit a25b3c9

Please sign in to comment.