dpgaspar commented on a change in pull request #11201:
URL:
https://github.com/apache/incubator-superset/pull/11201#discussion_r501926410
##########
File path: superset/views/core.py
##########
@@ -2001,9 +2004,15 @@ def results_exec(key: str) -> FlaskResponse:
return json_errors_response([ex.error], status=403)
payload = utils.zlib_decompress(blob, decode=not
results_backend_use_msgpack)
- obj = _deserialize_results_payload(
- payload, query, cast(bool, results_backend_use_msgpack)
- )
+ try:
+ obj = _deserialize_results_payload(
+ payload, query, cast(bool, results_backend_use_msgpack)
+ )
+ except SerializationError:
+ return json_error_response(
+ "Data could not be deserialized. You may want to re-run the
query.",
Review comment:
nit: translate?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]