GitHub user akashrn5 opened a pull request:
https://github.com/apache/carbondata/pull/1735
[CARBONDATA-1947]fix select * issue after compaction, delete and clean
files operation
**Problem**: fix select * issue after compaction, delete and clean files
operation
**Analysis**: during compaction the timestamp of fact file and the load
starttime present in metadata details are different for the same segments, so
when the delete operation is executed and after that clean files is called,
since there is a timestamp difference, it will delete the carbondata file which
inturn gives empty result for select query.
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [X] Any interfaces changed?
NA
- [X] Any backward compatibility impacted?
NA
- [X] Document update required?
NA
- [X] Testing done
Please provide details on
- Units test cases are added to test the scenario
- [X] 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/akashrn5/incubator-carbondata
clean_after_delete
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/1735.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 #1735
----
commit 47e9a7753473936607f54321d7b0602fcf50e90a
Author: akashrn5 <akashnilugal@...>
Date: 2017-12-28T08:13:15Z
fix select * issue after compaction, delete and clean files operation
----
---