Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-20255] Move listLeafFiles() to InMemoryFileIndex #17570

Closed
wants to merge 1 commit into from

Conversation

adrian-ionescu
Copy link
Contributor

What changes were proposed in this pull request

Trying to get a grip on the FileIndex hierarchy, I was confused by the following inconsistency:

On the one hand, PartitioningAwareFileIndex defines leafFiles and leafDirToChildrenFiles as abstract, but on the other it fully implements listLeafFiles which does all the listing of files. However, the latter is only used by InMemoryFileIndex.

I'm hereby proposing to move this method (and all its dependencies) to the implementation class that actually uses it, and thus unclutter the PartitioningAwareFileIndex interface.

How was this patch tested?

./build/sbt sql/test

@rxin
Copy link
Contributor

rxin commented Apr 7, 2017

Jenkins, add to whitelist.

@rxin
Copy link
Contributor

rxin commented Apr 7, 2017

LGTM pending Jenkins.

@SparkQA
Copy link

SparkQA commented Apr 7, 2017

Test build #3645 has finished for PR 17570 at commit 1c69820.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Apr 7, 2017

Merging in master.

@asfgit asfgit closed this in 589f3ed Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants