spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuanyuanking <>
Subject [GitHub] spark issue #17702: [SPARK-20408][SQL] Get the glob path in parallel to redu...
Date Mon, 05 Jun 2017 06:15:14 GMT
Github user xuanyuanking commented on the issue:
    @cloud-fan Thanks for your reply!
    It's possible to consolidate them but may be not so necessary? I can consolidate them
by replace the logic in `getGlobbedPaths` list below to `InMemoryFileIndex.bulkListLeafFiles`
    +      val expanded = sparkSession.sparkContext
    +        .parallelize(paths, paths.length)
    +        .map { pathString =>
    +          SparkHadoopUtil.get.globPathIfNecessary(new Path(pathString)).map(_.toString)
    +        }.collect()
    +      expanded.flatMap(paths => Path(_))).toSeq
    , and also change the interface of `bulkListLeafFiles` by adding a default param to parse
the function `globPathIfNecessary`, because of the glob path can be nested in many levels.
    Maybe current logic to add a new parallelize job is better than consolidate, what do you

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:

View raw message