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

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

commit 7194167399a3c0ad1235440734151c1a35e48359
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 377f09ec35..a2a6aaa1a7 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