GitHub user manishgupta88 opened a pull request:
https://github.com/apache/carbondata/pull/2593 [CARBONDATA-2753][Compatibility] Merge Index file not getting created with blocklet information for old store
**Problem**
Merge Index file not getting created with blocklet information for old store
**Analysis**
In legacy store (store <= 1.1 version), blocklet information is not written in the carbon Index files. When merge Index is created using the Alter DDL command on old store then merge Index file should be created with blocklet information which is as per the new store. This is not happening because the flag to read the carbondata file footer is not passed as true from Alter DDL command flow.
**Fix**
Pass the flag to read carbondataFileFooter as true while creating the merge Index file using Alter DDL command
- [ ] Any interfaces changed?
No
- [ ] Any backward compatibility impacted?
No
- [ ] Document update required?
No
- [ ] Testing done
Manually verified
- [ ] 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/manishgupta88/carbondata merge_index_compatibility
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2593.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2593
----
commit 4af316a7cebd0f05a08c4f4519302961eccbcb1f
Author: manishgupta88 <tomanishgupta18@...>
Date: 2018-08-01T08:54:52Z
Problem
Merge Index file not getting created with blocklet information for old store
Analysis
In legacy store (store <= 1.1 version), blocklet information is not written in the carbon Index files. When merge Index is created using the Alter DDL command on old store then merge Index file should be created with blocklet information which is as per the new store. This is not happening because the flag to read the carbondata file footer is not passed as true from Alter DDL command flow.
Fix
Pass the flag to read carbondataFileFooter as true while creating the merge Index file using Alter DDL command
----
---