MaxGekk 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_r269630087
##########
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:
Don't forget to remove this.
----------------------------------------------------------------
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]