You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2025/05/06 01:56:48 UTC
(superset) 03/06: fix: improve error type on parse error (#33048)
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 efc81ff946302f92c14d030f7dc08ffd979918d8
Author: JUST.in DO IT <ju...@airbnb.com>
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),