Update compaction.md (#11937)

Removed superfluous tabs that caused issues in rendering
Added nav to the `inputSpec`
This commit is contained in:
Peter Marshall 2021-11-22 13:33:47 +00:00 committed by GitHub
parent 3aee5d9ec3
commit 0c0001579d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 12 deletions

View File

@ -161,26 +161,25 @@ The compaction `ioConfig` requires specifying `inputSpec` as follows:
|Field|Description|Default|Required?|
|-----|-----------|-------|--------|
|`type`|Task type: `compact`|none|Yes|
|`inputSpec`|Input specification|none|Yes|
|`inputSpec`|Specification of the target [intervals](#interval-inputspec) or [segments](#segments-inputspec).|none|Yes|
|`dropExisting`|If `true`, when the task publishes newly compacted segments the compaction, it marks all existing segments fully contained by either of the following as unused (drops the segments):<br>- the `interval` in the `interval` type `inputSpec`.<br>- the umbrella interval of the `segments` in the `segment` type `inputSpec`.<br>If compaction fails, Druid does not drop or mark unused any segments.<br>**WARNING**: `dropExisting` in `ioConfig` is a beta feature. It may cause data within the compaction task interval to become temporarily unavailable.|false|no|
Druid supports two supported `inputSpec` formats:
#### Interval `inputSpec`:
#### Interval `inputSpec`
|Field|Description|Required|
|-----|-----------|--------|
|`type`|Task type. Should be `interval`|Yes|
|`interval`|Interval to compact|Yes|
|Field|Description|Required|
|-----|-----------|--------|
|`type`|Task type. Should be `interval`|Yes|
|`interval`|Interval to compact|Yes|
#### Segments `inputSpec`:
|Field|Description|Required|
|-----|-----------|--------|
|`type`|Task type. Should be `segments`|Yes|
|`segments`|A list of segment IDs|Yes|
#### Segments `inputSpec`
|Field|Description|Required|
|-----|-----------|--------|
|`type`|Task type. Should be `segments`|Yes|
|`segments`|A list of segment IDs|Yes|
### Compaction dimensions spec
You can optionally use the `dimensionsSpec` object to configure the dimensions of the compacted segments.