GitHub user Indhumathi27 opened a pull request:
https://github.com/apache/carbondata/pull/3028 [CARBONDATA-3205]Fix Get Local Dictionary for empty Array of Struct
Problem:
When a table contains a nested complex schema with Array of Struct as empty data, get dictionary for empty Array of Struct fails.
Solution:
Check if usedDictionary is empty, then return null
- [ ] Any interfaces changed?
- [ ] Any backward compatibility impacted?
- [ ] Document update required?
- [x] Testing done
Added a test case
- [ ] 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/Indhumathi27/carbondata nested
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/3028.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3028
----
commit 99e6233dcdb4b488d0f0366ac5966d4e9c4f895c
Author: Indhumathi27 <indhumathim27@...>
Date: 2018-12-27T12:02:48Z
[CARBONDATA-3205]Fix Get Local Dictionary for empty Array of Struct
----
---