From a4bd07791370861e191e672b1f60f69a757de911 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Wed, 16 Aug 2017 21:45:19 +0300 Subject: [PATCH] catch-up to percentile ranks agg change in es master Original commit: elastic/x-pack-elasticsearch@b7428ab61fa4a09ff0322cc57871e57259d6178f --- .../xpack/sql/querydsl/agg/PercentileRanksAgg.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sql/server/src/main/java/org/elasticsearch/xpack/sql/querydsl/agg/PercentileRanksAgg.java b/sql/server/src/main/java/org/elasticsearch/xpack/sql/querydsl/agg/PercentileRanksAgg.java index 5c05a9098e4..a77f87aabf3 100644 --- a/sql/server/src/main/java/org/elasticsearch/xpack/sql/querydsl/agg/PercentileRanksAgg.java +++ b/sql/server/src/main/java/org/elasticsearch/xpack/sql/querydsl/agg/PercentileRanksAgg.java @@ -26,9 +26,7 @@ public class PercentileRanksAgg extends LeafAgg { @Override AggregationBuilder toBuilder() { - // TODO: look at keyed - return percentileRanks(id()) - .field(fieldName()) - .values(values.stream().mapToDouble(Double::doubleValue).toArray()); + return percentileRanks(id(), values.stream().mapToDouble(Double::doubleValue).toArray()) + .field(fieldName()); } }