From 89822564219ff33ad0a146543647b1831be71e0a Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 20 Jan 2021 01:39:49 +0000 Subject: [PATCH] fix compile error on windows --- src/query/src/qExecutor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index b9eaa7f7c4..a6b29c7c93 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; -- GitLab