diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index b9eaa7f7c464f224ed142bf3d4954865024b01ea..a6b29c7c93d32a8e983762dcbb06908fac8fb63e 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4435,7 +4435,7 @@ static void generateBlockDistResult(STableBlockDist *pTableBlockDist) { taosArraySort(blockInfos, compareBlockInfo); - sprintf(pTableBlockDist->result, + int sz = sprintf(pTableBlockDist->result, "summery: \n\t 5th=[%d], 25th=[%d], 50th=[%d],75th=[%d], 95th=[%d], 99th=[%d] \n\t min=[%"PRId64"], max=[%"PRId64"], avg = [%"PRId64"] \n\t totalRows=[%"PRId64"], totalBlocks=[%"PRId64"] \n\t seekHeaderTimeCost=[%"PRId64"(us)] \n\t rowsInMem=[%"PRId64"]", getPercentileFromSortedArray(blockInfos, 0.05), getPercentileFromSortedArray(blockInfos, 0.25), getPercentileFromSortedArray(blockInfos, 0.50), getPercentileFromSortedArray(blockInfos, 0.75), getPercentileFromSortedArray(blockInfos, 0.95), getPercentileFromSortedArray(blockInfos, 0.99), @@ -4443,6 +4443,8 @@ static void generateBlockDistResult(STableBlockDist *pTableBlockDist) { totalRows, totalBlocks, pTableBlockDist->firstSeekTimeUs, pTableBlockDist->numOfRowsInMemTable); + UNUSE(sz); + return; } void skipBlocks(SQueryRuntimeEnv *pRuntimeEnv) { SQuery *pQuery = pRuntimeEnv->pQuery;