mirror of https://github.com/apache/druid.git
Merge pull request #1406 from zhaown/fix-breaking-while-exceeding-max-intermediate-rows
Fix breaking while exceeding max intermediate rows.
This commit is contained in:
commit
0481c8ca26
|
@ -364,11 +364,11 @@ public class GroupByQueryEngine
|
|||
}
|
||||
cursor.advance();
|
||||
}
|
||||
while (!cursor.isDone()) {
|
||||
while (!cursor.isDone() && rowUpdater.getNumRows() < config.getMaxIntermediateRows()) {
|
||||
ByteBuffer key = ByteBuffer.allocate(dimensions.size() * Ints.BYTES);
|
||||
|
||||
unprocessedKeys = rowUpdater.updateValues(key, dimensions);
|
||||
if (unprocessedKeys != null || rowUpdater.getNumRows() > config.getMaxIntermediateRows()) {
|
||||
if (unprocessedKeys != null) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue