Commit f8f8cbf
[7.x] [RollupV2] Move rollup metadata to field mappings (#70647)
Backports #69921 to 7.x
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. Finally, no rollup metadata exists in the global cluster state
Co-authored-by: Tal Levy <[email protected]>1 parent 6c973c1 commit f8f8cbf
File tree
11 files changed
+298
-585
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
+298
-585
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 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
| |||
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 139 | | |
145 | 140 | | |
146 | 141 | | |
| |||
194 | 189 | | |
195 | 190 | | |
196 | 191 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 192 | | |
202 | 193 | | |
203 | 194 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
591 | 592 | | |
592 | 593 | | |
593 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
594 | 602 | | |
595 | 603 | | |
596 | 604 | | |
| |||
Lines changed: 0 additions & 178 deletions
This file was deleted.
0 commit comments