From ddb2bb670436a2015306ff1b4044e3bcdc14e88c Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Mon, 15 Nov 2021 15:31:27 +0800 Subject: [PATCH] Revert "try to fix ubigint percentile range" This reverts commit 9d028e8de29969d8991e699b63e4d8b0f15624f2. --- 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 0b39de404d..4fc4c90594 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 (maxval > UINT64_MAX) { + if ((uint64_t)maxval > UINT64_MAX) { range->u64MaxVal = UINT64_MAX; } else { range->u64MaxVal = (uint64_t) maxval; -- GitLab