GitHub user liancheng opened a pull request: https://github.com/apache/spark/pull/13623
[SPARK-15895][SQL] Filters out metadata files while doing partition discovery ## What changes were proposed in this pull request? Take the following directory layout as an example: ``` dir/ `- p0=0/ |-_metadata `- p1=0/ |-part-00001.parquet |-part-00002.parquet |-... ... ``` The `_metadata` file under `p0=0` shouldn't fail partition discovery. This PR filters output all metadata files whose names start with `_` while doing partition discovery. ## How was this patch tested? New unit test added in `ParquetPartitionDiscoverySuite`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/liancheng/spark spark-15895-partition-disco-no-metafiles Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13623.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #13623 ---- commit 5015fa0ee08b05a39261bef1ed0b152fedb5029e Author: Cheng Lian <l...@databricks.com> Date: 2016-06-12T08:36:15Z Filters out metadata files while doing partition discovery ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org