Skip to content

Commit

Permalink
fix | create attribute using scope and key
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-bansal committed Jun 18, 2024
1 parent ecddcc1 commit 6e85ec9
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,15 @@ private static class DefaultMetricAggregationRequest implements MetricAggregatio

@Override
public String alias() {
// We have purposefully removed attribute().getId()
// because id contains dot(.) which messes up with
// database operations because we need to encode dot
// at multiple places and it causes data alias mismatch.
return String.format(
"%s_%s_%s",
"%s_%s_%s_%s",
this.aggregation.name(),
this.attributeExpressionAssociation.attribute().id(),
this.attributeExpressionAssociation.attribute().scope(),
this.attributeExpressionAssociation.attribute().key(),
this.arguments);
}

Expand Down

0 comments on commit 6e85ec9

Please sign in to comment.