Skip to content

Commit

Permalink
fix(eap): use TDigestWeighted instead of TDigest for perncetile confi…
Browse files Browse the repository at this point in the history
…dence calculation
  • Loading branch information
shellmayr committed Jan 9, 2025
1 parent bd84663 commit fa7adf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snuba/web/rpc/common/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,9 @@ def _get_possible_percentiles_expression(
aggregation, {"granularity": str(granularity), "width": str(width)}
)
alias_dict = {"alias": alias} if alias else {}
return cf.quantilesTDigest(*possible_percentiles)(
return cf.quantilesTDigestWeighted(*possible_percentiles)(
field,
sampling_weight_column,
**alias_dict,
)

Expand Down

0 comments on commit fa7adf9

Please sign in to comment.