diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index 42383887abafb9bac91d6caf28cfb08be0cb1066..c157eded69bb85f9583e917be3407de33bde48d3 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -474,6 +474,8 @@ int32_t getTableList(void* metaHandle, void* pVnode, SScanPhysiNode* pScanNode, int64_t stt1 = taosGetTimestampUs(); qDebug("generate table list, cost:%ld us", stt1-stt); + }else if(!pTagCond){ + vnodeGetCtbIdList(pVnode, pScanNode->suid, res); } } else { // Create one table group. taosArrayPush(res, &tableUid); @@ -500,8 +502,6 @@ int32_t getTableList(void* metaHandle, void* pVnode, SScanPhysiNode* pScanNode, } colDataDestroy(pColInfoData); taosMemoryFreeClear(pColInfoData); - }else{ - vnodeGetCtbIdList(pVnode, pScanNode->suid, res); } for (int i = 0; i < taosArrayGetSize(res); i++) {