Skip to content

Commit 09294a9

Browse files
fxdgearjavanna
authored andcommitted
keys in aggs percentiles need to be in quotes. (#26905)
Languages which are stronger typed will failed when comparing these results
1 parent a0bdedb commit 09294a9

File tree

2 files changed

+153
-153
lines changed

2 files changed

+153
-153
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/180_percentiles_tdigest_metric.yml

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,22 @@ setup:
6767
- length: { hits.hits: 4 }
6868
- match:
6969
aggregations.percentiles_int.values:
70-
1.0: 2.5
71-
5.0: 8.500000000000002
72-
25.0: 38.5
73-
50.0: 76.0
74-
75.0: 113.5
75-
95.0: 143.49999999999997
76-
99.0: 149.5
70+
"1.0": 2.5
71+
"5.0": 8.500000000000002
72+
"25.0": 38.5
73+
"50.0": 76.0
74+
"75.0": 113.5
75+
"95.0": 143.49999999999997
76+
"99.0": 149.5
7777
- match:
7878
aggregations.percentiles_double.values:
79-
1.0: 2.5
80-
5.0: 8.500000000000002
81-
25.0: 38.5
82-
50.0: 76.0
83-
75.0: 113.5
84-
95.0: 143.49999999999997
85-
99.0: 149.5
79+
"1.0": 2.5
80+
"5.0": 8.500000000000002
81+
"25.0": 38.5
82+
"50.0": 76.0
83+
"75.0": 113.5
84+
"95.0": 143.49999999999997
85+
"99.0": 149.5
8686

8787
- do:
8888
search:
@@ -104,22 +104,22 @@ setup:
104104
- length: { hits.hits: 4 }
105105
- match:
106106
aggregations.percentiles_int.values:
107-
1.0: 2.5
108-
5.0: 8.500000000000002
109-
25.0: 38.5
110-
50.0: 76.0
111-
75.0: 113.5
112-
95.0: 143.49999999999997
113-
99.0: 149.5
107+
"1.0": 2.5
108+
"5.0": 8.500000000000002
109+
"25.0": 38.5
110+
"50.0": 76.0
111+
"75.0": 113.5
112+
"95.0": 143.49999999999997
113+
"99.0": 149.5
114114
- match:
115115
aggregations.percentiles_double.values:
116-
1.0: 2.5
117-
5.0: 8.500000000000002
118-
25.0: 38.5
119-
50.0: 76.0
120-
75.0: 113.5
121-
95.0: 143.49999999999997
122-
99.0: 149.5
116+
"1.0": 2.5
117+
"5.0": 8.500000000000002
118+
"25.0": 38.5
119+
"50.0": 76.0
120+
"75.0": 113.5
121+
"95.0": 143.49999999999997
122+
"99.0": 149.5
123123

124124
---
125125
"Only aggs test":
@@ -140,22 +140,22 @@ setup:
140140
- length: { hits.hits: 0 }
141141
- match:
142142
aggregations.percentiles_int.values:
143-
1.0: 2.5
144-
5.0: 8.500000000000002
145-
25.0: 38.5
146-
50.0: 76.0
147-
75.0: 113.5
148-
95.0: 143.49999999999997
149-
99.0: 149.5
143+
"1.0": 2.5
144+
"5.0": 8.500000000000002
145+
"25.0": 38.5
146+
"50.0": 76.0
147+
"75.0": 113.5
148+
"95.0": 143.49999999999997
149+
"99.0": 149.5
150150
- match:
151151
aggregations.percentiles_double.values:
152-
1.0: 2.5
153-
5.0: 8.500000000000002
154-
25.0: 38.5
155-
50.0: 76.0
156-
75.0: 113.5
157-
95.0: 143.49999999999997
158-
99.0: 149.5
152+
"1.0": 2.5
153+
"5.0": 8.500000000000002
154+
"25.0": 38.5
155+
"50.0": 76.0
156+
"75.0": 113.5
157+
"95.0": 143.49999999999997
158+
"99.0": 149.5
159159

160160
---
161161
"Filtered test":
@@ -181,22 +181,22 @@ setup:
181181
- length: { hits.hits: 3 }
182182
- match:
183183
aggregations.percentiles_int.values:
184-
1.0: 52.0
185-
5.0: 56.0
186-
25.0: 76.0
187-
50.0: 101.0
188-
75.0: 126.0
189-
95.0: 146.0
190-
99.0: 150.0
184+
"1.0": 52.0
185+
"5.0": 56.0
186+
"25.0": 76.0
187+
"50.0": 101.0
188+
"75.0": 126.0
189+
"95.0": 146.0
190+
"99.0": 150.0
191191
- match:
192192
aggregations.percentiles_double.values:
193-
1.0: 52.0
194-
5.0: 56.0
195-
25.0: 76.0
196-
50.0: 101.0
197-
75.0: 126.0
198-
95.0: 146.0
199-
99.0: 150.0
193+
"1.0": 52.0
194+
"5.0": 56.0
195+
"25.0": 76.0
196+
"50.0": 101.0
197+
"75.0": 126.0
198+
"95.0": 146.0
199+
"99.0": 150.0
200200

201201
---
202202
"Missing field with missing param":
@@ -214,13 +214,13 @@ setup:
214214
- length: { hits.hits: 4 }
215215
- match:
216216
aggregations.percentiles_missing.values:
217-
1.0: 1.0
218-
5.0: 1.0
219-
25.0: 1.0
220-
50.0: 1.0
221-
75.0: 1.0
222-
95.0: 1.0
223-
99.0: 1.0
217+
"1.0": 1.0
218+
"5.0": 1.0
219+
"25.0": 1.0
220+
"50.0": 1.0
221+
"75.0": 1.0
222+
"95.0": 1.0
223+
"99.0": 1.0
224224

225225
---
226226
"Missing field without missing param":
@@ -255,13 +255,13 @@ setup:
255255
- match: { aggregations.percentiles_int.meta.foo: "bar" }
256256
- match:
257257
aggregations.percentiles_int.values:
258-
1.0: 2.5
259-
5.0: 8.500000000000002
260-
25.0: 38.5
261-
50.0: 76.0
262-
75.0: 113.5
263-
95.0: 143.49999999999997
264-
99.0: 149.5
258+
"1.0": 2.5
259+
"5.0": 8.500000000000002
260+
"25.0": 38.5
261+
"50.0": 76.0
262+
"75.0": 113.5
263+
"95.0": 143.49999999999997
264+
"99.0": 149.5
265265

266266
---
267267
"Invalid params test":

0 commit comments

Comments
 (0)