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

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