@Liang Chen, thank you for your reply.
After seriously thinking about your suggestion, I also think the two problems should be considered separately. For problem 2, User specified compaction segments is not a good solution indeed. I am glad to do some work for this. For problem 1, I agree with you that segment is not proper to be exposed to most users in standard APIs because segment is a internal concept to some extent. But as we have segment management commands like "show segments for table" and "alter table compact", it seems that we can not call it a completely internal concept. So I think maybe we can support user specified segments only in management functions like compaction and take it as a hidden advanced usage which is not recommended in general cases. Regards Jin Zhou -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/