Skip to content

Commit

Permalink
[Docs] Updates the years in the compaction example (apache#17366)
Browse files Browse the repository at this point in the history
* Updates the years in the compaction example

* update
  • Loading branch information
techdocsmith authored Dec 20, 2024
1 parent 4648a41 commit b79382f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data-management/compaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b79382f

Please sign in to comment.