Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24280

Speed up indexing of files in object stores by using listFiles(path, recursive=true)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 2.3.0
    • None
    • SQL

    Description

      Object stores which mock directory structures can have awful performance when a treewalk is executed on them. The FileSystem.listFiles(path, recursive=true) call can reduce this overhead to ~ O(1) by doing bulk paged listing of all files under a path. For filesystems without this operation, the treewalk is implemented behind the scenes: no cost compared to today's code, just a simplification

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: