Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-26368][SQL] Make it clear that getOrInferFileFormatSchema does…
…n't create InMemoryFileIndex ## What changes were proposed in this pull request? I was looking at the code and it was a bit difficult to see the life cycle of InMemoryFileIndex passed into getOrInferFileFormatSchema, because once it is passed in, and another time it was created in getOrInferFileFormatSchema. It'd be easier to understand the life cycle if we move the creation of it out. ## How was this patch tested? This is a simple code move and should be covered by existing tests. Closes apache#23317 from rxin/SPARK-26368. Authored-by: Reynold Xin <[email protected]> Signed-off-by: gatorsmile <[email protected]>
- Loading branch information