diff --git a/source/dnode/vnode/src/meta/metaTable.c b/source/dnode/vnode/src/meta/metaTable.c index f95cf171ab279dfe1919547bc59b80f79ce65dcb..59531575911a9897b01fe6ac113eb3c89fb4e82c 100644 --- a/source/dnode/vnode/src/meta/metaTable.c +++ b/source/dnode/vnode/src/meta/metaTable.c @@ -565,7 +565,7 @@ int metaDropIndexFromSTable(SMeta *pMeta, int64_t version, SDropIndexReq *pReq) int32_t colId = -1; for (int i = 0; i < oStbEntry.stbEntry.schemaTag.nCols; i++) { SSchema *schema = oStbEntry.stbEntry.schemaTag.pSchema + i; - if (strncmp(schema->name, pReq->colName, sizeof(pReq->colName))) { + if (0 == strncmp(schema->name, pReq->colName, sizeof(pReq->colName))) { if (IS_IDX_ON(schema)) { pCol = schema; } diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index 54c913df3bb994707b37219be95f320765bc905c..5b1b4fd4cefbd4b06242c203917e315336c108d5 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -1095,6 +1095,8 @@ int32_t getTableList(void* metaHandle, void* pVnode, SScanPhysiNode* pScanNode, if (code != 0 || status == SFLT_NOT_INDEX) { qError("failed to get tableIds from index, reason:%s, suid:%" PRIu64, tstrerror(code), tableUid); code = TDB_CODE_SUCCESS; + } else { + qInfo("succ to get filter result, table num: %d", (int)taosArrayGetSize(res)); } } }