Github user liancheng commented on the pull request:
https://github.com/apache/spark/pull/10379#issuecomment-166088383
@yanakad Thanks for your explanation, now I understand your use case. I
agree that this is somewhat inconvenient under this use case. But I still tend
to say this shouldn't be an issue, because:
1. At application level, this issue can be worked around by first globbing
the lowest directories first, and then passing result path(s) to
`DataFrameReader.parquet()` method.
2. Changes made in this PR bring negative impact to the public API:
- As mentioned above, the behavior becomes more error-prone and dangerous
- The behavior becomes inconsistent with other data sources. For
example, ORC, JSON, and JDBC all throws exception when the input path/JDBC URL
is invalid or doesn't exist.
---
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]