diff --git a/fili-core/src/main/java/com/yahoo/bard/webservice/data/config/metric/makers/AggregationAverageMaker.java b/fili-core/src/main/java/com/yahoo/bard/webservice/data/config/metric/makers/AggregationAverageMaker.java index e6ac599fa5..980f32d6b1 100644 --- a/fili-core/src/main/java/com/yahoo/bard/webservice/data/config/metric/makers/AggregationAverageMaker.java +++ b/fili-core/src/main/java/com/yahoo/bard/webservice/data/config/metric/makers/AggregationAverageMaker.java @@ -43,7 +43,7 @@ *
+ * If the original metric that is being averaged is used together in a query with the averaging metric, then both + * the original aggregator name and the summing aggregator used by the average metric may appear together in the + * outer query. If they share the same name but different definitions, there would be a conflict. This can arise + * if the original metric used a post aggregation or if it contained a non numeric (e.g. sketch) aggregation. + *
+ * We use the convention of changing the name for the average summing aggregation by adding the suffix '_sum'. * * @param innerMetric The metric on the inner query being summed *