Skip to content

Commit

Permalink
Fix aliases
Browse files Browse the repository at this point in the history
Co-authored-by: William Mak <william@wmak.io>
  • Loading branch information
colin-sentry and wmak authored Sep 16, 2024
1 parent 3b9e64f commit b8b1c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snuba/web/rpc/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def _get_aggregate_func(
)
if request.aggregate == AggregateBucketRequest.FUNCTION_P95:
return cf.quantileTDigestWeighted(0.95)(
key_expr, sampling_weight_expr, alias="p90"
key_expr, sampling_weight_expr, alias="p95"
)
if request.aggregate == AggregateBucketRequest.FUNCTION_P99:
return cf.quantileTDigestWeighted(0.99)(
key_expr, sampling_weight_expr, alias="p95"
key_expr, sampling_weight_expr, alias="p99"
)

raise BadSnubaRPCRequestException(
Expand Down

0 comments on commit b8b1c25

Please sign in to comment.