gengliangwang commented on a change in pull request #27136: [SPARK-30459][SQL] 
Fix ignoreMissingFiles/ignoreCorruptFiles in DSv2
URL: https://github.com/apache/spark/pull/27136#discussion_r364427111
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FilePartitionReader.scala
 ##########
 @@ -54,10 +52,7 @@ class FilePartitionReader[T](readers: 
Iterator[PartitionedFileReader[T]])
                 "recreating the Dataset/DataFrame involved.")
           case e @ (_: RuntimeException | _: IOException) if 
ignoreCorruptFiles =>
             logWarning(
-              s"Skipped the rest of the content in the corrupted file: 
$currentReader", e)
-            currentReader = null
 
 Review comment:
   ditto

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to