: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(clickhouse): bump local compatibility to 26.6 (#98675)
Rory Shanksb867f3920b3e
diff --git a/docker/clickhouse/users-dev.xml b/docker/clickhouse/users-dev.xmlindex af4b2f46f570..532c279375e6 100644--- a/docker/clickhouse/users-dev.xml+++ b/docker/clickhouse/users-dev.xml@@ -22,7 +22,9 @@<allow_nondeterministic_mutations>1</allow_nondeterministic_mutations>- <compatibility>26.3</compatibility>+ <compatibility>26.6</compatibility>+ <!-- Preserve skip indexes in distributed queries with transform_null_in=1. -->+ <optimize_rewrite_has_to_in>0</optimize_rewrite_has_to_in><!-- The funnel correlation query intentionally uses a materialized CTEto avoid re-running the actor subquery across UNION branches. --><enable_materialized_cte>1</enable_materialized_cte>diff --git a/docker/clickhouse/users.xml b/docker/clickhouse/users.xmlindex b02421db8226..be0562534e06 100644--- a/docker/clickhouse/users.xml+++ b/docker/clickhouse/users.xml@@ -23,7 +23,9 @@<allow_nondeterministic_mutations>1</allow_nondeterministic_mutations>- <compatibility>26.3</compatibility>+ <compatibility>26.6</compatibility>+ <!-- Preserve skip indexes in distributed queries with transform_null_in=1. -->+ <optimize_rewrite_has_to_in>0</optimize_rewrite_has_to_in><!-- The funnel correlation query intentionally uses a materialized CTEto avoid re-running the actor subquery across UNION branches. --><enable_materialized_cte>1</enable_materialized_cte>diff --git a/ee/clickhouse/views/test/test_clickhouse_groups.py b/ee/clickhouse/views/test/test_clickhouse_groups.pyindex 03667ed909c4..6f4c5eeaef48 100644--- a/ee/clickhouse/views/test/test_clickhouse_groups.py+++ b/ee/clickhouse/views/test/test_clickhouse_groups.py@@ -583,7 +583,6 @@ class GroupsViewSetTestCase(ClickhouseTestMixin, APIBaseTest):@time_machine.travel("2021-05-02", tick=False)@mock.patch("ee.clickhouse.views.groups.capture_internal")- @pytest.mark.flaky(reruns=2)def test_group_property_crud_add_success(self, mock_capture):group_type_mapping = create_group_type_mapping_without_created_at(team=self.team,@@ -604,10 +603,11 @@ class GroupsViewSetTestCase(ClickhouseTestMixin, APIBaseTest):properties={"name": "Mr. Krabs"},)- response = self.client.post(- f"/api/projects/{self.team.id}/groups/update_property?group_key=org:5&group_type_index=0",- {"key": "industry", "value": "technology"},- )+ with time_machine.travel("2021-05-02T00:00:01Z", tick=False):+ response = self.client.post(+ f"/api/projects/{self.team.id}/groups/update_property?group_key=org:5&group_type_index=0",+ {"key": "industry", "value": "technology"},+ )self.assertEqual(response.status_code, 200)self.assertEqual(@@ -668,7 +668,6 @@ class GroupsViewSetTestCase(ClickhouseTestMixin, APIBaseTest):@time_machine.travel("2021-05-02", tick=False)@mock.patch("ee.clickhouse.views.groups.capture_internal")- @pytest.mark.flaky(reruns=2)def test_group_property_crud_update_success(self, mock_capture):group_type_mapping = create_group_type_mapping_without_created_at(team=self.team,@@ -683,10 +682,11 @@ class GroupsViewSetTestCase(ClickhouseTestMixin, APIBaseTest):properties={"industry": "finance", "name": "Mr. Krabs"},)- response = self.client.post(- f"/api/projects/{self.team.id}/groups/update_property?group_key=org:5&group_type_index=0",- {"key": "industry", "value": "technology"},- )+ with time_machine.travel("2021-05-02T00:00:01Z", tick=False):+ response = self.client.post(+ f"/api/projects/{self.team.id}/groups/update_property?group_key=org:5&group_type_index=0",+ {"key": "industry", "value": "technology"},+ )self.assertEqual(response.status_code, 200)self.assertEqual(@@ -792,7 +792,6 @@ class GroupsViewSetTestCase(ClickhouseTestMixin, APIBaseTest):@time_machine.travel("2021-05-02", tick=False)@mock.patch("ee.clickhouse.views.groups.capture_internal")- @pytest.mark.flaky(reruns=2)def test_group_property_crud_delete_success(self, mock_capture):group_type_mapping = create_group_type_mapping_without_created_at(team=self.team,@@ -807,10 +806,11 @@ class GroupsViewSetTestCase(ClickhouseTestMixin, APIBaseTest):properties={"industry": "finance", "name": "Mr. Krabs"},)- response = self.client.post(- f"/api/projects/{self.team.id}/groups/delete_property?group_key=org:5&group_type_index=0",- {"$unset": "industry"},- )+ with time_machine.travel("2021-05-02T00:00:01Z", tick=False):+ response = self.client.post(+ f"/api/projects/{self.team.id}/groups/delete_property?group_key=org:5&group_type_index=0",+ {"$unset": "industry"},+ )self.assertEqual(response.status_code, 200)self.assertEqual(