HyukjinKwon commented on code in PR #37905: URL: https://github.com/apache/spark/pull/37905#discussion_r972848982
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/MicroBatchExecution.scala: ########## @@ -553,7 +554,7 @@ class MicroBatchExecution( logDebug(s"Running batch $currentBatchId") // Request unprocessed data from all sources. - newData = reportTimeTaken("getBatch") { + val mutableNewData = mutable.Map() ++ reportTimeTaken("getBatch") { Review Comment: ```suggestion val mutableNewData = mutable.Map.empty ++ reportTimeTaken("getBatch") { ``` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org