From b79382fa4d3adf5994990b89331348a7b53e3258 Mon Sep 17 00:00:00 2001 From: Charles Smith Date: Fri, 20 Dec 2024 10:22:50 -0800 Subject: [PATCH] [Docs] Updates the years in the compaction example (#17366) * Updates the years in the compaction example * update --- docs/data-management/compaction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data-management/compaction.md b/docs/data-management/compaction.md index 91ebf0d521ef..51bf7ee86427 100644 --- a/docs/data-management/compaction.md +++ b/docs/data-management/compaction.md @@ -78,7 +78,7 @@ Unless you modify the segment granularity in [`granularitySpec`](manual-compacti If segments have different segment granularities before compaction but there is some overlap in interval, Druid attempts find start and end of the overlapping interval and uses the closest segment granularity level for the compacted segment. -For example consider two overlapping segments: segment "A" for the interval 01/01/2021-01/02/2021 with day granularity and segment "B" for the interval 01/01/2021-02/01/2021. Druid attempts to combine and compact the overlapped segments. In this example, the earliest start time for the two segments is 01/01/2020 and the latest end time of the two segments is 02/01/2020. Druid compacts the segments together even though they have different segment granularity. Druid uses month segment granularity for the newly compacted segment even though segment A's original segment granularity was DAY. +For example consider two overlapping segments: segment "A" for the interval 01/01/2020-01/02/2020 with day granularity and segment "B" for the interval 01/01/2020-02/01/2020. Druid attempts to combine and compact the overlapped segments. In this example, the earliest start time for the two segments is 01/01/2020 and the latest end time of the two segments is 02/01/2020. Druid compacts the segments together even though they have different segment granularity. Druid uses month segment granularity for the newly compacted segment even though segment A's original segment granularity was day granularity. ### Query granularity handling