fix(query):update the time type check.

This commit is contained in:
Haojun Liao 2022-07-15 11:53:32 +08:00
parent 6c13a8e2e8
commit 013f5031bc
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ static int32_t doSetInputDataBlock(SOperatorInfo* pOperator, SqlFunctionCtx* pCt
pInput->startRowIndex = 0;
// NOTE: the last parameter is the primary timestamp column
if (fmIsTimelineFunc(pCtx[i].functionId) && (j == pOneExpr->base.numOfParams - 1)) {
if (fmIsTimelineFunc(pCtx[i].functionId) && (j == pOneExpr->base.numOfParams - 1) && pOneExpr->base.numOfParams > 1) {
pInput->pPTS = pInput->pData[j];
ASSERT(pInput->pPTS->info.type == TSDB_DATA_TYPE_TIMESTAMP);
}