diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index e15caaf0e98edab90196d186dd875234ebed06e2..bda0a154251372327b68dfe997ac2587bc9580fb 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4400,7 +4400,7 @@ static void freeTableBlockDist(STableBlockDist *pTableBlockDist) { free(pTableBlockDist); } } -static int32_t getPercentileFromSortedArray(const SArray* pArray, float rate) { +static int32_t getPercentileFromSortedArray(const SArray* pArray, double rate) { int32_t len = (int32_t)taosArrayGetSize(pArray); if (len <= 0) { return 0;