: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): use posthog clickhouse image for local dev (#123097)
Rory Shanks26913e5bb174
diff --git a/.github/clickhouse-versions.json b/.github/clickhouse-versions.jsonindex c909d84719dd..38610225086c 100644--- a/.github/clickhouse-versions.json+++ b/.github/clickhouse-versions.json@@ -1,6 +1,6 @@{"production_eu": "clickhouse/clickhouse-server:26.6.2","production_us": "clickhouse/clickhouse-server:26.6.2",- "local": "clickhouse/clickhouse-server:26.9.13",+ "local": "ghcr.io/posthog/clickhouse-posthog:26.9.5.2-posthog-aca5bdabb92f","oldest_supported": "clickhouse/clickhouse-server:26.6.2"}diff --git a/Dockerfile.sandbox b/Dockerfile.sandboxindex 859ccdaed613..911ff3aa5c84 100644--- a/Dockerfile.sandbox+++ b/Dockerfile.sandbox@@ -72,7 +72,7 @@ RUN corepack enable# --- Rarely changes: prebuilt binaries ---COPY --from=ghcr.io/astral-sh/uv:0.13.4 /uv /uvx /usr/local/bin/-COPY --from=clickhouse/clickhouse-server:26.9.13.15 /usr/bin/clickhouse /usr/local/bin/clickhouse+COPY --from=ghcr.io/posthog/clickhouse-posthog:26.9.5.2-posthog-aca5bdabb92f /usr/bin/clickhouse /usr/local/bin/clickhouseRUN ln -s clickhouse /usr/local/bin/clickhouse-clientRUN ARCH=$(dpkg --print-architecture) && \diff --git a/clickhouse-udfs/util/docker-compose.yml b/clickhouse-udfs/util/docker-compose.ymlindex dc74ba110656..323dfc9ad84c 100644--- a/clickhouse-udfs/util/docker-compose.yml+++ b/clickhouse-udfs/util/docker-compose.yml@@ -1,6 +1,6 @@services:clickhouse:- image: clickhouse/clickhouse-server:26.9.13.15+ image: ghcr.io/posthog/clickhouse-posthog:26.9.5.2-posthog-aca5bdabb92fulimits:nofile:soft: 262144diff --git a/docker-compose.base.yml b/docker-compose.base.ymlindex b6b94cf9fa9a..f8ab3999594a 100644--- a/docker-compose.base.yml+++ b/docker-compose.base.yml@@ -194,7 +194,7 @@ services:retries: 10clickhouse:- image: ${CLICKHOUSE_SERVER_IMAGE:-clickhouse/clickhouse-server:26.9.13.15}+ image: ${CLICKHOUSE_SERVER_IMAGE:-ghcr.io/posthog/clickhouse-posthog:26.9.5.2-posthog-aca5bdabb92f}restart: on-failureenvironment:CLICKHOUSE_SKIP_USER_SETUP: 1diff --git a/pyproject.toml b/pyproject.tomlindex 9bfc4cb62b46..d709a91bc321 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -345,7 +345,7 @@ members = ["tools/hogli", "packages/owners-yaml", "packages/personhog-proto"]hogli = { workspace = true }owners-yaml = { workspace = true }personhog-proto = { workspace = true }-infi-clickhouse-orm = { git = "https://github.com/PostHog/infi.clickhouse_orm", rev = "4e3996becf66bf5c26580aff12a80425d9d56fe5" }+infi-clickhouse-orm = { git = "https://github.com/PostHog/infi.clickhouse_orm", rev = "fa20b806e32cf748dfee3545d8926b9c36aff789" }# pytest-split: pinned to PostHog's fork (immutable tag) for the order-preserving# optimal_chunks split. Fork: PostHog/pytest-split (of jerry-git/pytest-split).# To pull upstream fixes: rebase the fork's feat branch onto upstream, cut the nextdiff --git a/uv.lock b/uv.lockindex cd5ce98cf328..8d7de9ea32df 100644--- a/uv.lock+++ b/uv.lock@@ -3527,7 +3527,7 @@ wheels = [[[package]]name = "infi-clickhouse-orm"version = "2.1.0.post20"-source = { git = "https://github.com/PostHog/infi.clickhouse_orm?rev=4e3996becf66bf5c26580aff12a80425d9d56fe5#4e3996becf66bf5c26580aff12a80425d9d56fe5" }+source = { git = "https://github.com/PostHog/infi.clickhouse_orm?rev=fa20b806e32cf748dfee3545d8926b9c36aff789#fa20b806e32cf748dfee3545d8926b9c36aff789" }dependencies = [{ name = "iso8601" },{ name = "pytz" },@@ -6276,7 +6276,7 @@ requires-dist = [{ name = "hogql-parser", specifier = "==1.3.85" },{ name = "hogql-parser-rs", specifier = "==1.3.109" },{ name = "humanize", specifier = "~=4.12.3" },- { name = "infi-clickhouse-orm", git = "https://github.com/PostHog/infi.clickhouse_orm?rev=4e3996becf66bf5c26580aff12a80425d9d56fe5" },+ { name = "infi-clickhouse-orm", git = "https://github.com/PostHog/infi.clickhouse_orm?rev=fa20b806e32cf748dfee3545d8926b9c36aff789" },{ name = "ipython", specifier = "~=9.3.0" },{ name = "jsonpatch", specifier = "~=1.33" },{ name = "jsonref", specifier = "==1.1.0" },