From 02d4cbfeeadc3d5dcbe16153d5d90dc9ed54134f Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Tue, 27 Dec 2016 21:52:27 +0100 Subject: [PATCH] Fix bwc integ test that tries to perform a term aggs on a scaled_float. This is broken when a node with version prior to 5.2.0 is used with another node > 5.2.0. This is because scaled_float fields are considered as longs in version < 5.2.0. This is fixed in 5.2.0 where scaled_float are recognized as doubles. --- .../rest-api-spec/test/search.aggregation/20_terms.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yaml index b1b9baf8ba8..c3f89f21381 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yaml @@ -287,6 +287,10 @@ setup: --- "Scaled float test": + - skip: + version: " - 5.2.0" + reason: scaled_float were considered as longs in aggregations, this was fixed in 5.2.0 + - do: index: index: test_1