You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/27 16:32:19 UTC

[GitHub] [spark] gengliangwang commented on a change in pull request #24207: [WIP][SPARK-27271][SQL] Migrate Text to File Data Source V2

gengliangwang commented on a change in pull request #24207: [WIP][SPARK-27271][SQL] Migrate Text to File Data Source V2
URL: https://github.com/apache/spark/pull/24207#discussion_r269656433
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FileScan.scala
 ##########
 @@ -41,7 +41,7 @@ abstract class FileScan(
     val selectedPartitions = fileIndex.listFiles(Seq.empty, Seq.empty)
     val maxSplitBytes = FilePartition.maxSplitBytes(sparkSession, selectedPartitions)
     val splitFiles = selectedPartitions.flatMap { partition =>
-      partition.files.flatMap { file =>
+      partition.files.filter(_.getLen > 0).flatMap { file =>
 
 Review comment:
   @MaxGekk Thanks. This is code changes from https://github.com/apache/spark/pull/24227 and I will remove it once https://github.com/apache/spark/pull/24227 is merged.

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


With regards,
Apache Git Services

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