From cd60700989e8865b536c76a98451ffe2d1a52126 Mon Sep 17 00:00:00 2001 From: Nick Lang Date: Thu, 5 Oct 2017 16:22:26 -0600 Subject: [PATCH] keys in aggs percentiles need to be in quotes. Languages which are stronger typed will failed when compareing these results --- .../180_percentiles_tdigest_metric.yml | 140 +++++++-------- .../190_percentiles_hdr_metric.yml | 166 +++++++++--------- 2 files changed, 153 insertions(+), 153 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/180_percentiles_tdigest_metric.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/180_percentiles_tdigest_metric.yml index 1b985c668933f..4301e6824e16a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/180_percentiles_tdigest_metric.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/180_percentiles_tdigest_metric.yml @@ -67,22 +67,22 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_int.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 - match: aggregations.percentiles_double.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 - do: search: @@ -104,22 +104,22 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_int.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 - match: aggregations.percentiles_double.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 --- "Only aggs test": @@ -140,22 +140,22 @@ setup: - length: { hits.hits: 0 } - match: aggregations.percentiles_int.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 - match: aggregations.percentiles_double.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 --- "Filtered test": @@ -181,22 +181,22 @@ setup: - length: { hits.hits: 3 } - match: aggregations.percentiles_int.values: - 1.0: 52.0 - 5.0: 56.0 - 25.0: 76.0 - 50.0: 101.0 - 75.0: 126.0 - 95.0: 146.0 - 99.0: 150.0 + "1.0": 52.0 + "5.0": 56.0 + "25.0": 76.0 + "50.0": 101.0 + "75.0": 126.0 + "95.0": 146.0 + "99.0": 150.0 - match: aggregations.percentiles_double.values: - 1.0: 52.0 - 5.0: 56.0 - 25.0: 76.0 - 50.0: 101.0 - 75.0: 126.0 - 95.0: 146.0 - 99.0: 150.0 + "1.0": 52.0 + "5.0": 56.0 + "25.0": 76.0 + "50.0": 101.0 + "75.0": 126.0 + "95.0": 146.0 + "99.0": 150.0 --- "Missing field with missing param": @@ -214,13 +214,13 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_missing.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 1.0 - 75.0: 1.0 - 95.0: 1.0 - 99.0: 1.0 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 1.0 + "75.0": 1.0 + "95.0": 1.0 + "99.0": 1.0 --- "Missing field without missing param": @@ -255,13 +255,13 @@ setup: - match: { aggregations.percentiles_int.meta.foo: "bar" } - match: aggregations.percentiles_int.values: - 1.0: 2.5 - 5.0: 8.500000000000002 - 25.0: 38.5 - 50.0: 76.0 - 75.0: 113.5 - 95.0: 143.49999999999997 - 99.0: 149.5 + "1.0": 2.5 + "5.0": 8.500000000000002 + "25.0": 38.5 + "50.0": 76.0 + "75.0": 113.5 + "95.0": 143.49999999999997 + "99.0": 149.5 --- "Invalid params test": diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/190_percentiles_hdr_metric.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/190_percentiles_hdr_metric.yml index 1d527efbf8a29..426faae503517 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/190_percentiles_hdr_metric.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/190_percentiles_hdr_metric.yml @@ -69,22 +69,22 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_int.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 - match: aggregations.percentiles_double.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 - do: search: @@ -106,22 +106,22 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_int.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 - match: aggregations.percentiles_double.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 --- "Only aggs test": @@ -144,22 +144,22 @@ setup: - length: { hits.hits: 0 } - match: aggregations.percentiles_int.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 - match: aggregations.percentiles_double.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 --- "Filtered test": @@ -187,22 +187,22 @@ setup: - length: { hits.hits: 3 } - match: aggregations.percentiles_int.values: - 1.0: 51.0 - 5.0: 51.0 - 25.0: 51.0 - 50.0: 101.03125 - 75.0: 101.03125 - 95.0: 151.09375 - 99.0: 151.09375 + "1.0": 51.0 + "5.0": 51.0 + "25.0": 51.0 + "50.0": 101.03125 + "75.0": 101.03125 + "95.0": 151.09375 + "99.0": 151.09375 - match: aggregations.percentiles_double.values: - 1.0: 51.0 - 5.0: 51.0 - 25.0: 51.0 - 50.0: 101.03125 - 75.0: 101.03125 - 95.0: 151.09375 - 99.0: 151.09375 + "1.0": 51.0 + "5.0": 51.0 + "25.0": 51.0 + "50.0": 101.03125 + "75.0": 101.03125 + "95.0": 151.09375 + "99.0": 151.09375 --- "Missing field with missing param": @@ -221,13 +221,13 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_missing.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 1.0 - 75.0: 1.0 - 95.0: 1.0 - 99.0: 1.0 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 1.0 + "75.0": 1.0 + "95.0": 1.0 + "99.0": 1.0 --- "Missing field without missing param": @@ -264,13 +264,13 @@ setup: - match: { aggregations.percentiles_int.meta.foo: "bar" } - match: aggregations.percentiles_int.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 --- "Invalid params test": @@ -374,14 +374,14 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_int.values: - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 - match: aggregations.percentiles_double.values: - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 --- "Non-keyed test": @@ -435,13 +435,13 @@ setup: - length: { hits.hits: 4 } - match: aggregations.percentiles_int.values: - 1.0: 1.0 - 5.0: 1.0 - 25.0: 1.0 - 50.0: 51.0302734375 - 75.0: 101.0615234375 - 95.0: 151.1240234375 - 99.0: 151.1240234375 + "1.0": 1.0 + "5.0": 1.0 + "25.0": 1.0 + "50.0": 51.0302734375 + "75.0": 101.0615234375 + "95.0": 151.1240234375 + "99.0": 151.1240234375 - match: { _shards.failures.0.reason.type: array_index_out_of_bounds_exception }