You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2026/08/12 00:26:38 UTC

(superset) 01/01: fix(chart/data): handle QueryObjectValidationError in _get_data_response

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

eschutho pushed a commit to branch fix/chart-data-query-validation-error-500
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 92c485464b2c3f9c9b99e40c0b29d5a1e76334a5
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Wed Aug 12 00:26:23 2026 +0000

    fix(chart/data): handle QueryObjectValidationError in _get_data_response
    
    Co-Authored-By: Claude Opus 4.8 <no...@anthropic.com>
---
 superset/charts/data/api.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/superset/charts/data/api.py b/superset/charts/data/api.py
index 9f167750835..6417ad49bb5 100644
--- a/superset/charts/data/api.py
+++ b/superset/charts/data/api.py
@@ -646,6 +646,8 @@ class ChartDataRestApi(ChartRestApi):
             return self.response_422(message=sanitize_error_message(exc.message))
         except ChartDataQueryFailedError as exc:
             return self.response_400(message=sanitize_error_message(exc.message))
+        except QueryObjectValidationError as exc:
+            return self.response_400(message=sanitize_error_message(exc.message))
 
             # Log is_cached if extra payload callback is provided
         materialized_result = result.materialize()