GitHub user ravipesala opened a pull request:
https://github.com/apache/carbondata/pull/2176
[CARBONDATA-2353] Added cache for datamap schema provider and added tests
Problem:
Currently, there is no cache for datamap schema provider, so every time it
reads schema from disk.
Solution:
Add cache to the DiskBasedDMSchemaStorageProvider and refresh the cache
depends on the modified time of datamap mdt file.
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [ ] Any interfaces changed?
- [ ] Any backward compatibility impacted?
- [ ] Document update required?
- [ ] Testing done
Tests added
- [ ] 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/ravipesala/incubator-carbondata schemasave
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2176.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 #2176
----
commit d60e090b506ea0c91ea7144c421a6dbe6388daf0
Author: ravipesala <ravi.pesala@...>
Date: 2018-04-16T12:52:23Z
Added cache for datamap schema provider and added tests
----
---