GitHub user shardul-cr7 opened a pull request:
https://github.com/apache/carbondata/pull/2739
[CARBONDATA-2954]Fix error when create external table command fired if path
already exists
Problem : Creating a external table and providing a valid location having
some empty directory and .carbondata files was giving "operation not allowed:
invalid datapath provided" error.
Solution: It was happening because if the location was having some empty
directory getFilePathExternalFilePath method in carbonutil.java was returning
null due to the presence of empty directory.So made a slight modification to
prevent this problem.
- [ ] Any interfaces changed?
- [ ] Any backward compatibility impacted?
- [ ] Document update required?
- [x] Testing done
manually tested.
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shardul-cr7/carbondata latestb05
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2739.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 #2739
----
commit 6e75500e5e4a081b5be69cbbde5e586e13e07d9f
Author: shardul-cr7 <shardulsingh22@...>
Date: 2018-09-20T14:12:54Z
[CARBONDATA-2954]Fix error when create external table command fired if path
already exists
----
---