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