Merge branch 'szhou/tbname-prune-vgroup' of github.com:taosdata/TDengine into szhou/tbname-prune-vgroup

This commit is contained in:
shenglian zhou 2023-11-03 14:12:15 +08:00
commit 81af550763
1 changed files with 3 additions and 1 deletions

View File

@ -3972,7 +3972,9 @@ static int32_t translateWhere(STranslateContext* pCxt, SSelectStmt* pSelect) {
if (TSDB_CODE_SUCCESS == code && pSelect->timeRange.skey > pSelect->timeRange.ekey) {
pSelect->isEmptyResult = true;
}
setTableVgroupsFromEqualTbnameCond(pCxt, pSelect);
if (pSelect->pWhere != NULL) {
setTableVgroupsFromEqualTbnameCond(pCxt, pSelect);
}
return code;
}