From 6c064d62e92496c5eba383261576233552156585 Mon Sep 17 00:00:00 2001 From: feng lv Date: Wed, 12 May 2021 12:29:43 +0000 Subject: [PATCH] add rangeSum udaf fix --- .../AggregateFunctionRangeSum.cpp | 56 +++++ .../AggregateFunctionRangeSum.h | 194 ++++++++++++++++++ src/AggregateFunctions/Helpers.h | 11 + .../registerAggregateFunctions.cpp | 3 + 4 files changed, 264 insertions(+) create mode 100644 src/AggregateFunctions/AggregateFunctionRangeSum.cpp create mode 100644 src/AggregateFunctions/AggregateFunctionRangeSum.h diff --git a/src/AggregateFunctions/AggregateFunctionRangeSum.cpp b/src/AggregateFunctions/AggregateFunctionRangeSum.cpp new file mode 100644 index 00000000000..4584eea7a39 --- /dev/null +++ b/src/AggregateFunctions/AggregateFunctionRangeSum.cpp @@ -0,0 +1,56 @@ +#include +#include +#include +#include +#include +#include + +#include + + +namespace DB +{ +namespace ErrorCodes +{ + extern const int ILLEGAL_TYPE_OF_ARGUMENT; + extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; +} + +namespace +{ + template