Merge pull request #6926 from taosdata/hotfix/TD-5338-m

[TD-5338]support dummy tag in sub-table interval query
This commit is contained in:
Haojun Liao 2021-07-20 10:37:42 +08:00 committed by GitHub
commit 16b9fc88ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -4885,6 +4885,8 @@ static SSDataBlock* doIntervalAgg(void* param) {
break;
}
setTagValue(pOperator, pRuntimeEnv->pQuery->current->pTable, pIntervalInfo->pCtx, pOperator->numOfOutput);
// the pDataBlock are always the same one, no need to call this again
setInputDataBlock(pOperator, pIntervalInfo->pCtx, pBlock, pQuery->order.order);
hashIntervalAgg(pOperator, &pIntervalInfo->resultRowInfo, pBlock, 0);