[TD-1875]<fix>: fix limit/offset error in super table join query.
This commit is contained in:
parent
f3d5df2a91
commit
d13a4e79d9
|
@ -1061,7 +1061,11 @@ static void joinRetrieveFinalResCallback(void* param, TAOS_RES* tres, int numOfR
|
||||||
pRes1->numOfRows, pRes1->numOfTotal);
|
pRes1->numOfRows, pRes1->numOfTotal);
|
||||||
assert(pRes1->row < pRes1->numOfRows);
|
assert(pRes1->row < pRes1->numOfRows);
|
||||||
} else {
|
} else {
|
||||||
|
SQueryInfo* pQueryInfo = tscGetQueryInfoDetail(&pParentSql->pSubs[i]->cmd, 0);
|
||||||
|
if (!tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
|
||||||
pRes1->numOfClauseTotal += pRes1->numOfRows;
|
pRes1->numOfClauseTotal += pRes1->numOfRows;
|
||||||
|
}
|
||||||
|
|
||||||
tscDebug("%p sub:%p index:%d numOfRows:%"PRId64" total:%"PRId64, pParentSql, pParentSql->pSubs[i], i,
|
tscDebug("%p sub:%p index:%d numOfRows:%"PRId64" total:%"PRId64, pParentSql, pParentSql->pSubs[i], i,
|
||||||
pRes1->numOfRows, pRes1->numOfTotal);
|
pRes1->numOfRows, pRes1->numOfTotal);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue