fix: projection limit 0 issue
This commit is contained in:
parent
4b6286a662
commit
e7a43b4e58
|
@ -231,7 +231,7 @@ static int32_t doIngroupLimitOffset(SLimitInfo* pLimitInfo, uint64_t groupId, SS
|
|||
// set current group id
|
||||
pLimitInfo->currentGroupId = groupId;
|
||||
bool limitReached = applyLimitOffset(pLimitInfo, pBlock, pOperator->pTaskInfo);
|
||||
if (pBlock->info.rows == 0) {
|
||||
if (pBlock->info.rows == 0 && 0 != pLimitInfo->limit.limit) {
|
||||
return PROJECT_RETRIEVE_CONTINUE;
|
||||
} else {
|
||||
if (limitReached && (pLimitInfo->slimit.limit >= 0 && pLimitInfo->slimit.limit <= pLimitInfo->numOfOutputGroups)) {
|
||||
|
|
Loading…
Reference in New Issue