Github user HyukjinKwon commented on the pull request:

    https://github.com/apache/spark/pull/11270#issuecomment-192106315
  
    @rxin If you think we should not list up not even once then, should we 
maybe then just detect the source only by given paths without listing up and 
then just leave the `sqlContext.conf.defaultDataSourceName` option?
    
    So, in other words,
    ```bash
    ├── iamjson.json                 # Detect success by the extension of 
`iamjson.json`
    │   ├── part-001
    │   └── part-002
    ├── iamjson                      # Try use 
`sqlContext.conf.defaultDataSourceName` and then
    │   │                            # throw an exception in Parquet-side.
    │   ├── part-001
    │   └── part-002
    ├── iamparquet.parquet           # Detect success by the extension of 
`iamparquet.parquet`
    │   ├── part-001.parquet
    │   └── part-002.parquet
    └── iamparquet                   # Just use 
`sqlContext.conf.defaultDataSourceName`
        ├── part-001.parquet
        └── part-002.parquet
    ```


---
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