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.

chore(clickhouse): bump pinned chschema to sha-deff440 (#68019)

Paweł Szczurd1b1fff34696
diff --git a/.github/workflows/ci-clickhouse-hcl-schema.yml b/.github/workflows/ci-clickhouse-hcl-schema.yml
index bda88041df44..8d24602253bf 100644
--- a/.github/workflows/ci-clickhouse-hcl-schema.yml
+++ b/.github/workflows/ci-clickhouse-hcl-schema.yml
@@ -28,11 +28,12 @@ permissions:
packages: read
env:
- # Pin to a concrete chschema build (not :latest) for reproducibility. sha-c0affa0
- # adds `introspect -exclude` (#79) for the live gate; it retains file()/heredoc
- # query refs (#68/#69) so a query authored as file("sql/x.sql") compares equal to
- # its golden, and the modifier-aware diff (#59). Override via repo variable.
- HCLEXP_IMAGE: ${{ vars.HCLEXP_IMAGE || 'ghcr.io/posthog/chschema:sha-c0affa0' }}
+ # Pin to a concrete chschema build (not :latest) for reproducibility. sha-deff440
+ # has `introspect -exclude` (#79) for the live gate, retains file()/heredoc query
+ # refs (#68/#69) so a query authored as file("sql/x.sql") compares equal to its
+ # golden and the modifier-aware diff (#59), and fixes the layer-order drop of
+ # dictionaries/views (#80). Override via repo variable.
+ HCLEXP_IMAGE: ${{ vars.HCLEXP_IMAGE || 'ghcr.io/posthog/chschema:sha-deff440' }}
jobs:
ops-hcl-guard:
diff --git a/.github/workflows/ci-clickhouse-multinode-migrations.yml b/.github/workflows/ci-clickhouse-multinode-migrations.yml
index 106788404b29..7e238898843e 100644
--- a/.github/workflows/ci-clickhouse-multinode-migrations.yml
+++ b/.github/workflows/ci-clickhouse-multinode-migrations.yml
@@ -57,7 +57,7 @@ jobs:
PRIME_POSTGRES_FROM: schema.sql.gz
# Pinned chschema build used by the live-schema convergence gate
# (verify-live.sh). Keep in sync with posthog/clickhouse/hcl/bin/hclexp.
- HCLEXP_IMAGE: ${{ vars.HCLEXP_IMAGE || 'ghcr.io/posthog/chschema:sha-c0affa0' }}
+ HCLEXP_IMAGE: ${{ vars.HCLEXP_IMAGE || 'ghcr.io/posthog/chschema:sha-deff440' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
diff --git a/posthog/clickhouse/hcl/README.md b/posthog/clickhouse/hcl/README.md
index 68948381cc7e..ccdad2867de8 100644
--- a/posthog/clickhouse/hcl/README.md
+++ b/posthog/clickhouse/hcl/README.md
@@ -90,7 +90,7 @@ HCL=posthog/clickhouse/hcl
$HCL/bin/hclexp -help
# it is equivalent to:
docker run --rm -v "$PWD:/work" -v "${TMPDIR:-/tmp}:${TMPDIR:-/tmp}" -w /work \
- ghcr.io/posthog/chschema:sha-c0affa0 -help
+ ghcr.io/posthog/chschema:sha-deff440 -help
```
(For faster local iteration you can build the binary — `go build -o hclexp ./cmd/hclexp` in
diff --git a/posthog/clickhouse/hcl/bin/hclexp b/posthog/clickhouse/hcl/bin/hclexp
index d0ec0fbe2954..649ea590b9b3 100755
--- a/posthog/clickhouse/hcl/bin/hclexp
+++ b/posthog/clickhouse/hcl/bin/hclexp
@@ -10,12 +10,13 @@
# (`go build -o hclexp ./cmd/hclexp` in the sibling repo) for faster iteration.
set -euo pipefail
-# Pinned to a concrete build (not :latest) for reproducibility. sha-c0affa0 adds
+# Pinned to a concrete build (not :latest) for reproducibility. sha-deff440 has
# `introspect -exclude` (chschema #79), which the live convergence gate
# (dump-live.sh) requires; it retains file()/heredoc query refs (#68/#69),
-# structured JSON diff (#66), and the modifier-aware diff (#59).
+# structured JSON diff (#66), and the modifier-aware diff (#59), and fixes the
+# layer-order drop of dictionaries/views (#80).
# Override via $HCLEXP_IMAGE; bump when intentionally upgrading hclexp.
-HCLEXP_IMAGE="${HCLEXP_IMAGE:-ghcr.io/posthog/chschema:sha-c0affa0}"
+HCLEXP_IMAGE="${HCLEXP_IMAGE:-ghcr.io/posthog/chschema:sha-deff440}"
if [[ -n "${HCLEXP_BIN:-}" ]]; then
exec "$HCLEXP_BIN" "$@"
diff --git a/posthog/clickhouse/hcl/dump-live.sh b/posthog/clickhouse/hcl/dump-live.sh
index c95d919f753e..5a3a171423c5 100755
--- a/posthog/clickhouse/hcl/dump-live.sh
+++ b/posthog/clickhouse/hcl/dump-live.sh
@@ -41,7 +41,7 @@ ROLES=(
)
# Pin to the same chschema build as bin/hclexp; override via repo variable.
-HCLEXP_IMAGE="${HCLEXP_IMAGE:-ghcr.io/posthog/chschema:sha-c0affa0}"
+HCLEXP_IMAGE="${HCLEXP_IMAGE:-ghcr.io/posthog/chschema:sha-deff440}"
# hclexp that can reach ClickHouse on the host's published ports. Prefer a local
# binary; otherwise a container sharing the host network namespace so localhost