From f90f2d57d76e4b5738396112f9fbfa953c8f601b Mon Sep 17 00:00:00 2001 From: Stef Nestor Date: Thu, 14 Oct 2021 08:46:46 -0600 Subject: [PATCH] Add error formatting on MatrixStatsAggregatorFactory.AggregationExecutionException (#79014) --- .../aggregations/matrix/stats/MatrixStatsAggregatorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/aggs-matrix-stats/src/main/java/org/elasticsearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java b/modules/aggs-matrix-stats/src/main/java/org/elasticsearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java index bb3771bfd5762..55d930128d0f6 100644 --- a/modules/aggs-matrix-stats/src/main/java/org/elasticsearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java +++ b/modules/aggs-matrix-stats/src/main/java/org/elasticsearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java @@ -55,7 +55,7 @@ protected Aggregator doCreateInternal( for (Map.Entry entry : valuesSources.entrySet()) { if (entry.getValue() instanceof ValuesSource.Numeric == false) { throw new AggregationExecutionException( - "ValuesSource type " + entry.getValue().toString() + "is not supported for aggregation " + this.name() + "ValuesSource type [" + entry.getValue().toString() + "] is not supported for aggregation [" + this.name() + "]" ); } // TODO: There must be a better option than this.