Repository navigation
Pin PostHog UDFs to the sorted, compact cleaner - #21
Merged
Merged
Conversation
Move the pin to 7cbfd25, the head of PostHog/posthog#135224. Its event, person and temporary cleaners write each top-level object and array as compact JSON text with the keys of every object in byte order. Numbers, nulls and duplicate keys inside the value are kept as sent. The UDF manifests are unchanged from 2b4f414; only the cleaner binaries differ. Add an e2e assertion that fails on the 2b4f414 cleaner, which stored the text as sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
clickhouse-util-udfs.ymlto7cbfd2508645378cc7d203654105624f377c8d05, the current head of feat(clickhouse): store objects and lists as text in events_json posthog#135224. Pin PostHog UDFs to PostHog/posthog#135224 #20 pinned2b4f414.2b4f414, the event, person and temporary cleaners write each top-level object and array as compact JSON text, with the keys of every object in byte order. Numbers, nulls and duplicate keys inside the value are kept as sent.2b4f414stored the text as sent.e2e/sql/udfs.sqlgains one assertion,{"$set":{ "b":"x/y", "a":2.0 }}→{"$set":"{\"a\":2.0,\"b\":\"x/y\"}"}, which fails on the2b4f414cleaner.Warning
PostHog/posthog#135224 is still open. If a new commit there changes the cleaner, this pin has to move again before the events_json backfill uploads.
Verification
clickhouse formatparsese2e/sql/udfs.sql.TestProcessEnvelopeLineStoresObjectsAndArraysAsStringsat7cbfd25: keys sorted,2.0kept,/not escaped.go test ./...and./e2e/run.sh. The cleaner binaries are Linux-only, and this change touches no Go code.🤖 Generated with Claude Code