Doubt about segmentGranularity and compaction

Hi,

During compaction there is an option to either retain or let go of the segmentGranularity with which data was originally ingested using the parameter Keep segment granularity.

If the segments were created solely based on time chunk i.e. there were no configuration such as max segments size etc. Keep segment granularity=true will not be able to merge the segments.

When exactly does Keep segment granularity=true works best? What are the scenarios which lead to multiple segments being created for same time chunk (as specified by segmentGranularity)? I have seen only one segment created for a time chunk and the use of Keep segment granularity=true is not clear when one has to perform compaction.

Thanks,

Prathamesh

Prathamesh,

Please lookup https://github.com/apache/incubator-druid/issues/7988

Thanks & Regds

Venkat