fix: tag filter

This commit is contained in:
Xiaoyu Wang 2023-02-20 19:06:07 +08:00
parent 319dfd8f06
commit 46ca6c9466
1 changed files with 2 additions and 2 deletions

View File

@ -965,9 +965,9 @@ static int32_t doFilterByTagCond(STableListInfo* pListInfo, SArray* pUidList, SN
goto end; goto end;
} else { } else {
if ((condType == FILTER_NO_LOGIC || condType == FILTER_AND) && status != SFLT_NOT_INDEX) { if ((condType == FILTER_NO_LOGIC || condType == FILTER_AND) && status != SFLT_NOT_INDEX) {
code = metaGetTableTagsByUids(metaHandle, pListInfo->suid, pUidList); code = metaGetTableTagsByUids(metaHandle, pListInfo->suid, pUidTagList);
} else { } else {
code = metaGetTableTags(metaHandle, pListInfo->suid, pUidList); code = metaGetTableTags(metaHandle, pListInfo->suid, pUidTagList);
} }
if (code != TSDB_CODE_SUCCESS) { if (code != TSDB_CODE_SUCCESS) {
qError("failed to get table tags from meta, reason:%s, suid:%" PRIu64, tstrerror(code), pListInfo->suid); qError("failed to get table tags from meta, reason:%s, suid:%" PRIu64, tstrerror(code), pListInfo->suid);