alexandrusoare commented on code in PR #39964:
URL: https://github.com/apache/superset/pull/39964#discussion_r3208214147


##########
superset/mcp_service/chart/compile.py:
##########
@@ -46,6 +49,21 @@
 
 logger = logging.getLogger(__name__)
 
+_CONNECTION_ERROR_TYPES = {
+    SupersetErrorType.CONNECTION_INVALID_USERNAME_ERROR,
+    SupersetErrorType.CONNECTION_INVALID_PASSWORD_ERROR,
+    SupersetErrorType.CONNECTION_INVALID_HOSTNAME_ERROR,
+    SupersetErrorType.CONNECTION_PORT_CLOSED_ERROR,
+    SupersetErrorType.CONNECTION_INVALID_PORT_ERROR,
+    SupersetErrorType.CONNECTION_HOST_DOWN_ERROR,
+    SupersetErrorType.CONNECTION_ACCESS_DENIED_ERROR,
+    SupersetErrorType.CONNECTION_UNKNOWN_DATABASE_ERROR,
+    SupersetErrorType.CONNECTION_DATABASE_PERMISSIONS_ERROR,
+    SupersetErrorType.CONNECTION_MISSING_PARAMETERS_ERROR,
+    SupersetErrorType.CONNECTION_DATABASE_TIMEOUT,
+    SupersetErrorType.GENERIC_DB_ENGINE_ERROR,

Review Comment:
   We include GENERIC_DB_ENGINE_ERROR because many engines (BigQuery, 
Snowflake, Athena, Databricks, Trino) lack specific CONNECTION_* regex patterns 
— all their connection failures fall back to this type. Excluding it would mean 
connection errors on these databases still show as "chart configuration is 
invalid," defeating the purpose of this fix.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to