Github user mallman commented on a diff in the pull request:
    --- Diff: 
    @@ -276,15 +290,15 @@ object PartitioningAwareFileCatalog extends Logging {
       private def listLeafFilesInSerial(
           paths: Seq[Path],
    -      hadoopConf: Configuration): Seq[FileStatus] = {
    +      hadoopConf: Configuration): Map[Path, Seq[FileStatus]] = {
         // Dummy jobconf to get to the pathFilter defined in configuration
         val jobConf = new JobConf(hadoopConf, this.getClass)
         val filter = FileInputFormat.getInputPathFilter(jobConf)
    -    paths.flatMap { path =>
    + { path =>
           val fs = path.getFileSystem(hadoopConf)
    -      listLeafFiles0(fs, path, filter)
    -    }
    +      (path, listLeafFiles0(fs, path, filter))
    +    }.toMap
    --- End diff --
    Based on how you're using this return value above, it looks like you can 
omit this call to `toMap` and just return a sequence of tuples.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to