KKcorps commented on code in PR #10473: URL: https://github.com/apache/pinot/pull/10473#discussion_r1152227371
########## pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MailboxSendOperator.java: ########## @@ -151,10 +152,18 @@ protected TransferableBlock getNextBlock() { try { transferableBlock = _dataTableBlockBaseOperator.nextBlock(); while (!transferableBlock.isNoOpBlock()) { - _exchange.send(transferableBlock); if (transferableBlock.isEndOfStreamBlock()) { - return transferableBlock; + if (transferableBlock.isSuccessfulEndOfStreamBlock()) { + TransferableBlock eosBlockWithStats = TransferableBlockUtils.getEndOfStreamTransferableBlock( + OperatorUtils.getMetadataFromOperatorStats(_opChainStats.getOperatorStatsMap())); + _exchange.send(eosBlockWithStats); + return eosBlockWithStats; Review Comment: So that it gets serialized and sent to next OpChain. -- 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. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org