mirror of https://github.com/apache/druid.git
Fix breaking while exceeding max intermediate rows.
This commit is contained in:
parent
39c55b417e
commit
524b05f073
|
@ -366,11 +366,11 @@ public class GroupByQueryEngine
|
||||||
}
|
}
|
||||||
cursor.advance();
|
cursor.advance();
|
||||||
}
|
}
|
||||||
while (!cursor.isDone()) {
|
while (!cursor.isDone() && rowUpdater.getNumRows() < config.getMaxIntermediateRows()) {
|
||||||
ByteBuffer key = ByteBuffer.allocate(dimensions.size() * Ints.BYTES);
|
ByteBuffer key = ByteBuffer.allocate(dimensions.size() * Ints.BYTES);
|
||||||
|
|
||||||
unprocessedKeys = rowUpdater.updateValues(key, dimensions);
|
unprocessedKeys = rowUpdater.updateValues(key, dimensions);
|
||||||
if (unprocessedKeys != null || rowUpdater.getNumRows() > config.getMaxIntermediateRows()) {
|
if (unprocessedKeys != null) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue