alex-balikov commented on a change in pull request #35810:
URL: https://github.com/apache/spark/pull/35810#discussion_r824363655
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FlatMapGroupsWithStateExec.scala
##########
@@ -172,12 +172,20 @@ case class FlatMapGroupsWithStateExec(
timeoutProcessingStartTimeNs = System.nanoTime
})
- val timeoutProcessorIter =
- CompletionIterator[InternalRow,
Iterator[InternalRow]](processor.processTimedOutState(), {
- // Note: `timeoutLatencyMs` also includes the time the parent operator
took for
- // processing output returned through iterator.
- timeoutLatencyMs += NANOSECONDS.toMillis(System.nanoTime -
timeoutProcessingStartTimeNs)
- })
+ // SPARK-38204: Late-bind the timeout processing iterator so it is created
*after* the input is
Review comment:
Thanks for the catch. Fixed.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]