From 07467a7810c19447ef2aae1619c1f45b2bcd4f04 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 10 Mar 2021 15:33:16 +0800 Subject: [PATCH] [td-2895] fix compiler error. --- 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 1b74f673ee..aee2bf980b 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -987,7 +987,7 @@ static void doSetInputDataBlock(SOperatorInfo* pOperator, SQLFunctionCtx* pCtx, uint32_t status = aAggs[pCtx[i].functionId].status; if ((status & (TSDB_FUNCSTATE_SELECTIVITY | TSDB_FUNCSTATE_NEED_TS)) != 0) { SColumnInfoData* tsInfo = taosArrayGet(pBlock->pDataBlock, 0); - pCtx[i].ptsList = tsInfo->pData; + pCtx[i].ptsList = (int64_t*) tsInfo->pData; } } } @@ -1191,7 +1191,7 @@ static void hashIntervalAgg(SOperatorInfo* pOperatorInfo, SResultRowInfo* pResul TSKEY* tsCols = NULL; if (pSDataBlock->pDataBlock != NULL) { SColumnInfoData* pColDataInfo = taosArrayGet(pSDataBlock->pDataBlock, 0); - tsCols = pColDataInfo->pData; + tsCols = (int64_t*) pColDataInfo->pData; assert(tsCols[0] == pSDataBlock->info.window.skey && tsCols[pSDataBlock->info.rows - 1] == pSDataBlock->info.window.ekey); } -- GitLab