Skip to content

Commit

Permalink
fix(hogql): use correct toDecimal function
Browse files Browse the repository at this point in the history
  • Loading branch information
timgl committed Dec 11, 2024
1 parent c0a35e7 commit 2767583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/hogql/functions/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def compare_types(arg_types: list[ConstantType], sig_arg_types: tuple[ConstantTy
"_toUInt64": HogQLFunctionMeta("toUInt64", 1, 1, signatures=[((UnknownType(),), IntegerType())]),
"_toUInt128": HogQLFunctionMeta("toUInt128", 1, 1),
"toFloat": HogQLFunctionMeta("accurateCastOrNull", 1, 1, suffix_args=[ast.Constant(value="Float64")]),
"toDecimal": HogQLFunctionMeta("accurateCastOrNull", 1, 1, suffix_args=[ast.Constant(value="Decimal64")]),
"toDecimal": HogQLFunctionMeta("toDecimal64OrNull", 2, 2),
"toDate": HogQLFunctionMeta(
"toDateOrNull",
1,
Expand Down

0 comments on commit 2767583

Please sign in to comment.