From 9d028e8de29969d8991e699b63e4d8b0f15624f2 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Sun, 14 Nov 2021 09:39:24 +0800 Subject: [PATCH] try to fix ubigint percentile range --- src/query/src/qPercentile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qPercentile.c b/src/query/src/qPercentile.c index 4fc4c90594..0b39de404d 100644 --- a/src/query/src/qPercentile.c +++ b/src/query/src/qPercentile.c @@ -74,7 +74,7 @@ static int32_t setBoundingBox(MinMaxEntry* range, int16_t type, double minval, d } } else if (IS_UNSIGNED_NUMERIC_TYPE(type)){ range->u64MinVal = (uint64_t) minval; - if ((uint64_t)maxval > UINT64_MAX) { + if (maxval > UINT64_MAX) { range->u64MaxVal = UINT64_MAX; } else { range->u64MaxVal = (uint64_t) maxval; -- GitLab