Github user mallman commented on a diff in the pull request: https://github.com/apache/spark/pull/14690#discussion_r77426981 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala --- @@ -2531,6 +2531,8 @@ class Dataset[T] private[sql]( */ def inputFiles: Array[String] = { val files: Seq[String] = logicalPlan.collect { + case LogicalRelation(HadoopFsRelation(_, location: FileCatalog, _, _, _, _, _), _, _) => --- End diff -- Good question. It seems a call to `Dataset.inputFiles` which reads from a partitioned table will return an empty array here. On the other hand, asking for the input files for a large partitioned table will require a costly tree traversal. I'll have to think about this some more before I have an opinion.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org