From 45d807eb02efff1d04c958d9025ce6982562e045 Mon Sep 17 00:00:00 2001 From: "k.peskov" Date: Mon, 18 Jan 2021 22:43:00 +0300 Subject: [PATCH] 1. add stddevPop func 2. add stddevSamp func --- src/infi/clickhouse_orm/funcs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/infi/clickhouse_orm/funcs.py b/src/infi/clickhouse_orm/funcs.py index d84c761..951dce5 100644 --- a/src/infi/clickhouse_orm/funcs.py +++ b/src/infi/clickhouse_orm/funcs.py @@ -1633,6 +1633,16 @@ class F(Cond, FunctionOperatorsMixin, metaclass=FMeta): def varSamp(x): return F('varSamp', x) + @staticmethod + @aggregate + def stddevPop(expr): + return F('stddevPop', expr) + + @staticmethod + @aggregate + def stddevSamp(expr): + return F('stddevSamp', expr) + @staticmethod @aggregate @parametric