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

michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit e0e2d329e0593696f4cb7179fd4d31c8d9548f66
Author: JUST.in DO IT <[email protected]>
AuthorDate: Wed Apr 9 09:52:15 2025 -0700

    fix: improve error type on parse error (#33048)
    
    (cherry picked from commit ed0cd5e7b0d1189ebd2a0db84254f28bd10769c8)
---
 superset/sql_parse.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/sql_parse.py b/superset/sql_parse.py
index c8836f1670..b253ab29d0 100644
--- a/superset/sql_parse.py
+++ b/superset/sql_parse.py
@@ -272,7 +272,7 @@ class ParsedQuery:
             logger.warning("Unable to parse SQL (%s): %s", self._dialect, 
self.sql)
             raise SupersetSecurityException(
                 SupersetError(
-                    error_type=SupersetErrorType.QUERY_SECURITY_ACCESS_ERROR,
+                    error_type=SupersetErrorType.INVALID_SQL_ERROR,
                     message=__(
                         "You may have an error in your SQL statement. 
{message}"
                     ).format(message=ex.error.message),

Reply via email to