Skip to content

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

fix: Make permission denied error non-retryable (#57778)

Tomás Farías Santanac66ed2396f40
diff --git a/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py b/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py
index e735837e686c..6e05ea1fb3ad 100644
--- a/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py
+++ b/products/batch_exports/backend/temporal/destinations/databricks_batch_export.py
@@ -454,6 +454,8 @@ class DatabricksClient:
except ServerOperationError as err:
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
@contextlib.asynccontextmanager