Commit 735ae3f
[RollupV2] Move rollup metadata to field mappings (elastic#69921)
This PR moves field related rollup metadata from the index metadata to the field mapping metadata.
- date_histogram fields is moved to the timestamp field
(fields are fixed_interval or calendar_interval, time_zone)
- histogram fields are moved to the numeric field on which the the histogram is computed
(the field is named interval)
Also, the index uuid has been added to the index rollup settings as index.rollup.source.uuid
and index.rollup.source.name
The rest of the RollupMetadata has been removed and no rollup metadata exists in the global
cluster state.
Co-authored-by: Tal Levy <[email protected]>1 parent 87bf8b4 commit 735ae3f
File tree
11 files changed
+297
-587
lines changed- server/src
- main/java/org/elasticsearch
- cluster
- metadata
- common/settings
- test/java/org/elasticsearch/cluster/metadata
- x-pack/plugin
- core/src/main/java/org/elasticsearch/xpack/core/rollup
- rollup
- src
- main/java/org/elasticsearch/xpack/rollup/v2
- test/java/org/elasticsearch/xpack/rollup/v2
11 files changed
+297
-587
lines changedLines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 136 | | |
142 | 137 | | |
143 | 138 | | |
| |||
162 | 157 | | |
163 | 158 | | |
164 | 159 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 160 | | |
170 | 161 | | |
171 | 162 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
573 | 580 | | |
574 | 581 | | |
575 | 582 | | |
| |||
Lines changed: 0 additions & 178 deletions
This file was deleted.
0 commit comments