Skip to content

Commit

Permalink
chore(hogql): Added corr clickhouse func (#22880)
Browse files Browse the repository at this point in the history
* Added corr clickhouse func

* Moved corr into agg funcs
  • Loading branch information
Gilbert09 authored Jun 11, 2024
1 parent 3e98252 commit a8cf4ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions posthog/hogql/functions/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ def compare_types(arg_types: list[ConstantType], sig_arg_types: tuple[ConstantTy
"covarPopIf": HogQLFunctionMeta("covarPopIf", 3, 3, aggregate=True),
"covarSamp": HogQLFunctionMeta("covarSamp", 2, 2, aggregate=True),
"covarSampIf": HogQLFunctionMeta("covarSampIf", 3, 3, aggregate=True),
"corr": HogQLFunctionMeta("corr", 2, 2, aggregate=True),
# ClickHouse-specific aggregate functions
"anyHeavy": HogQLFunctionMeta("anyHeavy", 1, 1, aggregate=True),
"anyHeavyIf": HogQLFunctionMeta("anyHeavyIf", 2, 2, aggregate=True),
Expand Down

0 comments on commit a8cf4ec

Please sign in to comment.