:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(databricks): surface an actionable error for a missing SQL warehouse (#73095)
Tom Owersbe61536425dc
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.pyindex e215bf768e4c..334247e81d6a 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py@@ -41,6 +41,9 @@ DatabricksErrors = {"PERMISSION_DENIED": "Your Databricks credentials don't have permission to access this data. Grant USE CATALOG, USE SCHEMA, and SELECT to the connecting principal, then try again.","INSUFFICIENT_PERMISSIONS": "Your Databricks credentials don't have permission to access this data. Grant USE CATALOG, USE SCHEMA, and SELECT to the connecting principal, then try again.","TABLE_OR_VIEW_NOT_FOUND": "The catalog has no `information_schema` — this usually means it's a legacy `hive_metastore` catalog. The Databricks source requires a Unity Catalog catalog.",+ # Raised when the SQL warehouse referenced by the HTTP path was mistyped or deleted — a common+ # setup mistake that otherwise falls through to the generic "could not connect" message.+ "RESOURCE_DOES_NOT_EXIST": "Can't find the SQL warehouse referenced by the HTTP path. Check the HTTP path points to an existing, running SQL warehouse.","nodename nor servname provided": "Can't resolve the server hostname. Check the server hostname and try again.","Name or service not known": "Can't resolve the server hostname. Check the server hostname and try again.","Failed to resolve": "Can't resolve the server hostname. Check the server hostname and try again.",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.pyindex 1831145ebb06..19f47dac008c 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py@@ -517,6 +517,7 @@ class TestDatabricksSource:"Error during request to server: : Source IP address: 44.208.188.173 is blocked by Databricks IP ACL for workspace: 1557520918149316. ","IP access control list",),+ ("[RESOURCE_DOES_NOT_EXIST] Warehouse abc123 does not exist.", "SQL warehouse"),("something totally unexpected", "Could not connect to Databricks"),],)