You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pass script level params into scripted metric aggs (elastic#28819)
Now params that are passed at the script level and at the aggregation level
are merged and can both be used in the aggregation scripts. If there are
any conflicts, aggregation level params will win. This may be followed
by another change detecting that case and throwing an exception to
disallow such conflicts.
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/search/aggregations/metrics/scripted/ScriptedMetricAggregationBuilder.java
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/search/aggregations/metrics/scripted/ScriptedMetricAggregatorFactory.java
Copy file name to clipboardExpand all lines: server/src/test/java/org/elasticsearch/search/aggregations/metrics/scripted/ScriptedMetricAggregatorTests.java
+47-1
Original file line number
Diff line number
Diff line change
@@ -64,8 +64,15 @@ public class ScriptedMetricAggregatorTests extends AggregatorTestCase {
0 commit comments