[DISCUSSION] Clean files command supports specify segment ids
Posted by Yahui Liu on Oct 14, 2021; 7:20am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/DISCUSSION-Clean-files-command-supports-specify-segment-ids-tp109018.html
Clean files operation can specify segments to be deleted instead of delete all the Marked For Delete and Compacted segments after the number of theses segments reaches carbon.invisible.segments.preserve.count.
User can specify segments with option ```segment_ids```. Value of this option is the segment ids user wants to delete. Only Marked for Delete and Compacted segment ids are valid. If invalid ids are given, operation will fail directly.
If segments are specified, ```force``` option will be ignored.
Example:
CLEAN FILES FOR TABLE TABLE_NAME options('segment_ids'='0,1,2')
Please give me some inputs, thanks all.