fix: set scan tags when bi mode

This commit is contained in:
slzhou 2023-10-31 07:37:56 +08:00
parent 4b6f927e6a
commit e800c993dd
1 changed files with 7 additions and 5 deletions

View File

@ -1029,11 +1029,13 @@ SNode* createSelectStmt(SAstCreateContext* pCxt, bool isDistinct, SNodeList* pPr
}
SNode* setSelectStmtTagMode(SAstCreateContext* pCxt, SNode* pStmt, bool bSelectTags) {
if (pStmt && QUERY_NODE_SELECT_STMT == nodeType(pStmt)) {
if (pCxt->pQueryCxt->biMode) {
((SSelectStmt*)pStmt)->tagScan = true;
} else if (pStmt && QUERY_NODE_SELECT_STMT == nodeType(pStmt)) {
} else {
((SSelectStmt*)pStmt)->tagScan = bSelectTags;
}
}
return pStmt;
}