fix: set scan tags when bi mode
This commit is contained in:
parent
4b6f927e6a
commit
e800c993dd
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue