Skip to content

Commit 72d9f20

Browse files
committed
fix test problem
1 parent 81c6d77 commit 72d9f20

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/java/com/robin/core/fileaccess/iterator/AbstractFileIterator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public boolean hasNext() {
255255
try {
256256
// no order by
257257
if(!useOrderBy && !useGroupBy) {
258-
groupOrderByInit();
258+
259259
pullNext();
260260
while (!CollectionUtils.isEmpty(cachedValue) && useFilter && !CommRecordGenerator.doesRecordAcceptable(segment, cachedValue)) {
261261
pullNext();
@@ -267,6 +267,9 @@ public boolean hasNext() {
267267
return !CollectionUtils.isEmpty(cachedValue);
268268
}else{
269269
//capture all record to offHeap
270+
if(CollectionUtils.isEmpty(groupByMap)) {
271+
groupOrderByInit();
272+
}
270273
newRecord.clear();
271274
if(groupIter.hasNext()) {
272275

0 commit comments

Comments
 (0)