HeartSaVioR commented on a change in pull request #27664: [SPARK-30915][SS]
FileStreamSink: Avoid reading the metadata log file when finding the latest
batch ID
URL: https://github.com/apache/spark/pull/27664#discussion_r410242868
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FileStreamSink.scala
##########
@@ -142,7 +142,7 @@ class FileStreamSink(
}
override def addBatch(batchId: Long, data: DataFrame): Unit = {
- if (batchId <= fileLog.getLatest().map(_._1).getOrElse(-1L)) {
Review comment:
Yeah I think so. Nice finding. Thanks!
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]