funnel-udf/README.md
exitcd funnel-udf./build.shFor revertible cloud deploys:
Develop using the binary files at the top level of user_scripts (see section above), with schema defined in docker/clickhouse/user_defined_function.xml
If you've made any changes to UDFs, when ready to deploy, increment the version in posthog/udf_versioner.py and run it
Overwrite user_defined_function.xml in the posthog-cloud-infra repo (us, eu, and dev) with user_scripts/latest_user_defined_function.xml and deploy it
SELECT aggregate_funnel_vXX(). The error message is different for functions that CH doesn't know about, and for invalid arguments.Land a version of the posthog repo with the updated user_scripts folder from the new branch (make sure this PR doesn't include changes to this file with the new version)
Run the copy_udfs_to_clickhouse action in the posthog_cloud_infra repo to deploy the user_scripts folder to clickhouse
After that deploy goes out, it is safe to land and deploy the full changes to the posthog repo
cross-rs to compile the binaries - it's a cross platfrom rust compiler../build.sh fails in flox environmentIf you're using flox for development, you'll have to exit out of the environment first (nix os isn't supported).
Error:
0: could not determine os in target triplet
1: unsupported os in target, abi: "1.82.0", system: "rustc"