: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(hogql): surface PostHog functions in editor autocomplete (#58276)
Christiaan Hendriksen9cab72997455
diff --git a/posthog/hogql/functions/mapping.py b/posthog/hogql/functions/mapping.pyindex 4dcc22b18000..55c15a7157a1 100644--- a/posthog/hogql/functions/mapping.py+++ b/posthog/hogql/functions/mapping.py@@ -240,7 +240,13 @@ HOGQL_CLICKHOUSE_FUNCTIONS: dict[str, HogQLFunctionMeta] = {HOGQL_CLICKHOUSE_FUNCTIONS.update(UDFS)ALL_EXPOSED_FUNCTION_NAMES = [- name for name in chain(HOGQL_CLICKHOUSE_FUNCTIONS.keys(), HOGQL_AGGREGATIONS.keys()) if not name.startswith("_")+ name+ for name in chain(+ HOGQL_CLICKHOUSE_FUNCTIONS.keys(),+ HOGQL_AGGREGATIONS.keys(),+ HOGQL_POSTHOG_FUNCTIONS.keys(),+ )+ if not name.startswith("_")]