Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clickhouse-util-udfs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repository: PostHog/posthog
revision: 2b4f41441705e283bc413090ce045bdee9ef39ec
revision: 7cbfd2508645378cc7d203654105624f377c8d05
manifest_paths:
- docker/clickhouse/user_defined_function.xml
- posthog/user_scripts/latest_user_defined_function.xml
Expand Down
3 changes: 2 additions & 1 deletion e2e/sql/udfs.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- PostHog 2b4f41441705e283bc413090ce045bdee9ef39ec (PostHog/posthog#135224): all 60 executable UDFs.
-- PostHog 7cbfd2508645378cc7d203654105624f377c8d05 (PostHog/posthog#135224): all 60 executable UDFs.
-- Empty funnels return no conversions; debug functions echo valid JSON.
WITH
toUInt8(2) AS steps,
Expand Down Expand Up @@ -36,6 +36,7 @@ SELECT
throwIf(JSONCleanPostHogEventProperties('{"a":1,"b":null}') != '{"a":1}', 'JSONCleanPostHogEventProperties failed'),
throwIf(JSONCleanPostHogPersonProperties('{"a":1,"b":null}') != '{"a":1}', 'JSONCleanPostHogPersonProperties failed'),
throwIf(JSONCleanPostHogTemporaryProperties('{"$set":{"a":1},"b":2}') != '{"$set":"{\\"a\\":1}"}', 'JSONCleanPostHogTemporaryProperties failed'),
throwIf(JSONCleanPostHogTemporaryProperties('{"$set":{ "b":"x/y", "a":2.0 }}') != '{"$set":"{\\"a\\":2.0,\\"b\\":\\"x/y\\"}"}', 'JSONCleanPostHogTemporaryProperties sorted compact failed'),
throwIf(JSONStripEmptyStringsAndNulls('{"a":1,"b":null,"c":""}') != '{"a":1}', 'JSONStripEmptyStringsAndNulls failed'),
throwIf(decompress(unhex('170000006068656c6c6f200600d06f2068656c6c6f2068656c6c6f'), 'LZ4SizePrefixed') != 'hello hello hello hello', 'decompress failed'),
throwIf(JSONDropKeysPool('{"a":1,"b":2}', ['a']) != '{"b":2}', 'JSONDropKeysPool failed'),
Expand Down
Loading