gvvinblade commented on a change in pull request #8380:
URL: https://github.com/apache/ignite/pull/8380#discussion_r511106324
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/rel/Inbox.java
##########
@@ -216,7 +216,7 @@ private void push() throws IgniteCheckedException {
/** */
private void pushOrdered() throws IgniteCheckedException {
PriorityQueue<Pair<Row, Buffer>> heap =
- new PriorityQueue<>(buffers.size(),
Map.Entry.comparingByKey(comp));
+ new PriorityQueue<>(Math.max(buffers.size(), 1),
Map.Entry.comparingByKey(comp));
Review comment:
possibly, I'll rewrite this piece of code, honestly it was just a rude
fast fix
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]