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): upgrade utility udfs to go 1.27.1 (#97183)

Rory Shanks01f28d39ad49
diff --git a/clickhouse-udfs/util/go.mod b/clickhouse-udfs/util/go.mod
index 4921e1699e11..31f748118999 100644
--- a/clickhouse-udfs/util/go.mod
+++ b/clickhouse-udfs/util/go.mod
@@ -1,6 +1,6 @@
module github.com/PostHog/posthog/clickhouse-udfs/util
-go 1.25.5
+go 1.27.1
require (
github.com/stretchr/testify v1.11.1
diff --git a/docs/internal/clickhouse-utility-udfs.md b/docs/internal/clickhouse-utility-udfs.md
index 14b0850e052a..20a3304aa121 100644
--- a/docs/internal/clickhouse-utility-udfs.md
+++ b/docs/internal/clickhouse-utility-udfs.md
@@ -6,6 +6,8 @@ This also applies to existing `$feature_flags` objects, after cleanup resolves d
Flag values and person-property ordering follow the existing cleanup rules.
See [the utility UDF README](../../clickhouse-udfs/util/README.md) for build and integration-test commands.
+The utility module and CI use Go 1.27.1, declared in `clickhouse-udfs/util/go.mod`.
+Rebuild all three utilities for Linux amd64 and arm64 with `./scripts/build.sh` whenever this version changes; CI verifies the checked-in binaries.
The event, person, and temporary cleaners reuse at most 4,096 parser nodes across rows.
Recycled nodes keep small backing arrays for reuse and release larger arrays whose capacity exceeds twice their used length, so a wide row does not make later small rows repeatedly clear oversized arrays.
diff --git a/posthog/user_scripts/json_clean_posthog_event_properties_udf_aarch64 b/posthog/user_scripts/json_clean_posthog_event_properties_udf_aarch64
index 0b9ff0ed4eb5..3a54e0e607a8 100755
Binary files a/posthog/user_scripts/json_clean_posthog_event_properties_udf_aarch64 and b/posthog/user_scripts/json_clean_posthog_event_properties_udf_aarch64 differ
diff --git a/posthog/user_scripts/json_clean_posthog_event_properties_udf_x86_64 b/posthog/user_scripts/json_clean_posthog_event_properties_udf_x86_64
index 84ac366feef8..718596098e62 100755
Binary files a/posthog/user_scripts/json_clean_posthog_event_properties_udf_x86_64 and b/posthog/user_scripts/json_clean_posthog_event_properties_udf_x86_64 differ
diff --git a/posthog/user_scripts/json_drop_keys_udf_aarch64 b/posthog/user_scripts/json_drop_keys_udf_aarch64
index 3f78fc1a70b3..a8811d207214 100755
Binary files a/posthog/user_scripts/json_drop_keys_udf_aarch64 and b/posthog/user_scripts/json_drop_keys_udf_aarch64 differ
diff --git a/posthog/user_scripts/json_drop_keys_udf_x86_64 b/posthog/user_scripts/json_drop_keys_udf_x86_64
index bfc3e7b6769a..323fa2efd4c2 100755
Binary files a/posthog/user_scripts/json_drop_keys_udf_x86_64 and b/posthog/user_scripts/json_drop_keys_udf_x86_64 differ
diff --git a/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_aarch64 b/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_aarch64
index ed304f689584..030776f9e469 100755
Binary files a/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_aarch64 and b/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_aarch64 differ
diff --git a/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_x86_64 b/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_x86_64
index c082de94b575..1368a748dd99 100755
Binary files a/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_x86_64 and b/posthog/user_scripts/json_strip_empty_strings_and_nulls_udf_x86_64 differ