From 9b2a53cec2dac86f07a78b97a1d37fd72e5d0dca Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 23 Oct 2020 23:19:21 +0800 Subject: [PATCH] [td-1373] --- src/query/src/qExecutor.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index dd14523c2a..cfef95ef00 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4769,10 +4769,14 @@ static bool multiTableMultioutputHelper(SQInfo *pQInfo, int32_t index) { if (pRuntimeEnv->pTSBuf != NULL) { if (pRuntimeEnv->cur.vgroupIndex == -1) { STSElem elem = tsBufGetElemStartPos(pRuntimeEnv->pTSBuf, pQInfo->vgId, &pRuntimeEnv->pCtx[0].tag); - // failed to find data with the specified tag value and vnodeId if (elem.vnode < 0) { + qDebug("QInfo:%p failed to find tag:%s in ts_comp", pQInfo, pRuntimeEnv->pCtx[0].tag.pz); return false; + } else { + STSCursor cur = tsBufGetCursor(pRuntimeEnv->pTSBuf); + qDebug("QInfo:%p find tag:%s start pos in ts_comp, blockIndex:%d, tsIndex:%d", pQInfo, pRuntimeEnv->pCtx[0].tag.pz, + cur.blockIndex, cur.tsIndex); } } else { STSElem elem = tsBufGetElem(pRuntimeEnv->pTSBuf); @@ -4784,6 +4788,9 @@ static bool multiTableMultioutputHelper(SQInfo *pQInfo, int32_t index) { } tsBufSetCursor(pRuntimeEnv->pTSBuf, &pRuntimeEnv->cur); + STSCursor cur = tsBufGetCursor(pRuntimeEnv->pTSBuf); + qDebug("QInfo:%p continue scan ts_comp file, tag:%s blockIndex:%d, tsIndex:%d", pQInfo, pRuntimeEnv->pCtx[0].tag.pz, + cur.blockIndex, cur.tsIndex); } } -- GitLab