[TD-1875]<fix>: fix limit/offset error in super table join query.

This commit is contained in:
Haojun Liao 2020-11-03 10:04:08 +08:00
parent f3d5df2a91
commit d13a4e79d9
1 changed files with 5 additions and 1 deletions

View File

@ -1061,7 +1061,11 @@ static void joinRetrieveFinalResCallback(void* param, TAOS_RES* tres, int numOfR
pRes1->numOfRows, pRes1->numOfTotal);
assert(pRes1->row < pRes1->numOfRows);
} else {
SQueryInfo* pQueryInfo = tscGetQueryInfoDetail(&pParentSql->pSubs[i]->cmd, 0);
if (!tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
pRes1->numOfClauseTotal += pRes1->numOfRows;
}
tscDebug("%p sub:%p index:%d numOfRows:%"PRId64" total:%"PRId64, pParentSql, pParentSql->pSubs[i], i,
pRes1->numOfRows, pRes1->numOfTotal);
}