From 27675836860f90d73c30dc53f9a595b65a7a608e Mon Sep 17 00:00:00 2001 From: timgl Date: Wed, 11 Dec 2024 10:58:46 +0000 Subject: [PATCH] fix(hogql): use correct toDecimal function --- posthog/hogql/functions/mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/hogql/functions/mapping.py b/posthog/hogql/functions/mapping.py index a422e16dc989c..43c9bb4e7c150 100644 --- a/posthog/hogql/functions/mapping.py +++ b/posthog/hogql/functions/mapping.py @@ -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,