GitHub user arina-ielchiieva opened a pull request:
https://github.com/apache/drill/pull/864
DRILL-4720: Fix SchemaPartitionExplorer.getSubPartitions method
implementations to return only Drill file system directories
1. Added file system util helper classes to standardize list directory and
file statuses usage in Drill with appropriate unit tests.
2. Fixed SchemaPartitionExplorer.getSubPartitions method implementations to
return only directories that can be partitions according to Drill file system
rules (excluded all files and directories that start with dot or underscore).
3. Added unit test for directory explorers UDFs with and without metadata
cache presence.
4. Minor refactoring.
Details in Jira
[DRILL-4720](https://issues.apache.org/jira/browse/DRILL-4720).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/arina-ielchiieva/drill DRILL-4720
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/864.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 #864
----
commit 6d592373c740fd793ed6bbb3264b97b52e4b763b
Author: Arina Ielchiieva <[email protected]>
Date: 2017-06-29T13:08:33Z
DRILL-4720: Fix SchemaPartitionExplorer.getSubPartitions method
implementations to return only Drill file system directories
1. Added file system util helper classes to standardize list directory and
file statuses usage in Drill with appropriate unit tests.
2. Fixed SchemaPartitionExplorer.getSubPartitions method implementations to
return only directories that can be partitions according to Drill file system
rules
(excluded all files and directories that start with dot or underscore).
3. Added unit test for directory explorers UDFs with and without metadata
cache presence.
4. Minor refactoring.
----
---
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.
---