Github user gatorsmile commented on the pull request:

    https://github.com/apache/spark/pull/12828#issuecomment-216415109
  
    @yhuai We passed leaf dirs to `path`, but the `basePaths` is a path to a 
`Parquet` file. For example, 
    ```
        parsePartition(
          path = new Path("file://path/a=10"),
          defaultPartitionName = defaultPartitionName,
          typeInference = true,
          basePaths = Set(new Path("file://path/a=10/p.parquet")))
    ```
    
    In this case, we need to follow what we did in 
https://github.com/apache/spark/pull/9651. 
    
    The current behavior is shown in the test case:
    
https://github.com/apache/spark/pull/12828/files#diff-cf57fe1c329fb21ac00a8528f049da4aR435


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to