: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(batch-exports): clarify databricks USE SCHEMA permission error (#58098)
posthog[bot]937bb162430a
diff --git a/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py b/products/batch_exports/backend/temporal/destinations/databricks_batch_export.pyindex 6e05ea1fb3ad..bc3262b2dff9 100644--- a/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py+++ b/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py@@ -455,7 +455,10 @@ class DatabricksClient:if err.message and "[SCHEMA_NOT_FOUND]" in err.message:raise DatabricksSchemaNotFoundError(schema)elif _is_insufficient_permissions_error(err):- raise DatabricksInsufficientPermissionsError("USE SCHEMA", err.message)+ raise DatabricksInsufficientPermissionsError(+ "USE SCHEMA",+ f"PERMISSION_DENIED: User does not have USE SCHEMA on Schema {schema}",+ )raise@contextlib.asynccontextmanager