GitHub user ajantha-bhat opened a pull request:
https://github.com/apache/carbondata/pull/2283
[CARBONDATA-2457] Add converter to get Carbon SDK Schema from Avro schema
directly.
[CARBONDATA-2457] Add converter to get Carbon SDK Schema from Avro schema
directly.
In the current implementation, SDK users have to manually create carbon
schema of fields from avro schema.
This is time-consuming and error-prone. Also, user should not be worried
about this logic.
So, abstract the carbon schema creation from avro schema by exposing a
method to user.
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [ ] Any interfaces changed? Added new interface, not modified existing
- [ ] Any backward compatibility impacted? NA
- [ ] Document update required? will be handled in separate PR
- [ ] Testing done
yes, updated the test case in TestNonTransactionalCarbonTable.scala
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA. NA
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ajantha-bhat/carbondata multi_level_complex
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2283.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 #2283
----
commit a65a6fd0f6663061ddbc7da146e56e8367e75c9f
Author: ajantha-bhat <ajanthabhat@...>
Date: 2018-05-08T06:42:37Z
[CARBONDATA-2457] Added converter to get Carbon SDK Schema from Avro schema
directly.
In the current implementation, SDK users have to manually create carbon
schema of fields from avro schema.
This is time consuming and error prone. Also user should not be worried
about this logic.
So, abstract the carbon schema creation from avro schema by exposing a
method to user.
----
---