diff --git a/source/dnode/vnode/src/meta/metaQuery.c b/source/dnode/vnode/src/meta/metaQuery.c index 602cf4d5107e20c8e2c6500b5ec09a1f4e69d3ba..a1b6b3924d19f6604261f7f971110782d81951ab 100644 --- a/source/dnode/vnode/src/meta/metaQuery.c +++ b/source/dnode/vnode/src/meta/metaQuery.c @@ -1277,6 +1277,9 @@ int32_t metaFilterTableIds(SMeta *pMeta, SMetaFltParam *param, SArray *pUids) { if (schema->colId == param->cid && param->type == schema->type && IS_IDX_ON(schema)) { ret = 0; } + if (i == 0) { + ret = 0; + } } if (ret != 0) { goto END; diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index edd44f2aea141f4320615c138ca75baf00312430..dce358ab6de1db6cc87febf527faf67ed368e9a7 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -17,6 +17,7 @@ #include "functionMgt.h" #include "index.h" #include "os.h" +#include "query.h" #include "tdatablock.h" #include "thash.h" #include "tmsg.h" @@ -1061,7 +1062,7 @@ int32_t getTableList(void* metaHandle, void* pVnode, SScanPhysiNode* pScanNode, status = SFLT_NOT_INDEX; code = doFilterTag(pTagIndexCond, &metaArg, pUidList, &status); if (code != 0 || status == SFLT_NOT_INDEX) { // temporarily disable it for performance sake - // qError("failed to get tableIds from index, reason:%s, suid:%" PRIu64, tstrerror(code), tableUid); + qWarn("failed to get tableIds from index, suid:%" PRIu64, pScanNode->uid); code = TDB_CODE_SUCCESS; } else { qInfo("succ to get filter result, table num: %d", (int)taosArrayGetSize(pUidList)); diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index 81ef3f4fe60fb1843448d0c860297b731f79d736..9d4c627b1a80e4693bd65198f5629486eae832aa 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -836,7 +836,7 @@ static int32_t sifCalculate(SNode *pNode, SIFParam *pDst) { if (res->result != NULL) { taosArrayAddAll(pDst->result, res->result); } - if (res == SFLT_NOT_INDEX) pDst->status = res->status; + pDst->status = res->status; sifFreeParam(res); taosHashRemove(ctx.pRes, (void *)&pNode, POINTER_BYTES);