: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
chore(data-modeling): remove the drained trino shadow patch marker (#130213)
Jovan Sakovic4af90ea2c777
diff --git a/posthog/temporal/data_modeling/workflows/materialize_view.py b/posthog/temporal/data_modeling/workflows/materialize_view.pyindex a3b9779a09af..a68cc160ea23 100644--- a/posthog/temporal/data_modeling/workflows/materialize_view.py+++ b/posthog/temporal/data_modeling/workflows/materialize_view.py@@ -85,8 +85,6 @@ NON_RETRYABLE_ERRORS = ["EndpointMaterializationTurnedOffError",]-CLICKHOUSE_RUN_WITHOUT_TRINO_SHADOW_PATCH = "data-modeling-clickhouse-run-without-trino-shadow"-def _is_cancellation(error: BaseException) -> bool:"""The SDK never re-delivers a cancel, so a handler that swallows one keeps issuing commands."""@@ -228,8 +226,6 @@ class MaterializeViewWorkflow(PostHogWorkflow):managed_warehouse_only = inputs.managed_warehouse_onlyif not managed_warehouse_only:- # Histories that carry the patch marker replay with deprecate_patch; delete it once those runs drain.- temporalio.workflow.deprecate_patch(CLICKHOUSE_RUN_WITHOUT_TRINO_SHADOW_PATCH)managed_warehouse_enabled = Falseelse:managed_warehouse_enabled = await temporalio.workflow.execute_activity(diff --git a/posthog/temporal/tests/data_modeling/test_materialize_view_workflow.py b/posthog/temporal/tests/data_modeling/test_materialize_view_workflow.pyindex efbd9cc13366..fd65322e5212 100644--- a/posthog/temporal/tests/data_modeling/test_materialize_view_workflow.py+++ b/posthog/temporal/tests/data_modeling/test_materialize_view_workflow.py@@ -82,7 +82,6 @@ class TestQualityGateBranching:stack.enter_context(patch.object(temporalio.workflow, "info", return_value=info))stack.enter_context(patch.object(temporalio.workflow, "now", return_value=dt.datetime(2026, 8, 1)))stack.enter_context(patch.object(temporalio.workflow, "logger"))- stack.enter_context(patch.object(temporalio.workflow, "deprecate_patch"))stack.enter_context(patch(f"{WORKFLOW_MODULE}.capture_exception"))for metric in ("get_node_finished_metric",