Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/12002#discussion_r57594679
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala
---
@@ -137,8 +131,7 @@ private[sql] object FileSourceStrategy extends Strategy
with Logging {
logInfo(s"Planning scan with bin packing, max size:
$maxSplitBytes bytes")
val splitFiles = selectedPartitions.flatMap { partition =>
- partition.files.flatMap { file =>
- assert(file.getLen != 0, file.toString)
+ partition.files.filter(_.getLen > 0).flatMap { file =>
--- End diff --
Existing CSV test cases covers empty input file. This change is no longer
necessary if #11999 is merged.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]