From e396be72383353aae58dafa4ee0d9a13a67980d3 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 20 Jan 2021 02:56:18 +0000 Subject: [PATCH] fix compile error on windows --- src/query/src/qExecutor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index bda0a15425..ef6c114acc 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -5907,7 +5907,7 @@ static void buildTableBlockDistResult(SQInfo *pQInfo) { STableBlockDist *pTableBlockDist = calloc(1, sizeof(STableBlockDist)); pTableBlockDist->dataBlockInfos = taosArrayInit(512, sizeof(SDataBlockInfo)); - pTableBlockDist->result = malloc(512); + pTableBlockDist->result = (char *)malloc(512); TsdbQueryHandleT pQueryHandle = pRuntimeEnv->pQueryHandle; SDataBlockInfo blockInfo = SDATA_BLOCK_INITIALIZER; @@ -5943,7 +5943,7 @@ static void buildTableBlockDistResult(SQInfo *pQInfo) { type = blockDistSchema.type; } assert(type == TSDB_DATA_TYPE_BINARY); - STR_TO_VARSTR(pQuery->sdata[j]->data, pTableBlockDist->result); + STR_TO_VARSTR(pQuery->sdata[j]->data, (char *)(pTableBlockDist->result)); } freeTableBlockDist(pTableBlockDist); -- GitLab