Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtsuk committed Nov 7, 2024
1 parent 9f38a8f commit 2add616
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions snuba/web/rpc/common/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,8 @@ def aggregation_to_expression(aggregation: AttributeAggregation) -> Expression:
== ExtrapolationMode.EXTRAPOLATION_MODE_SAMPLE_WEIGHTED
):
agg_func_expr = function_map_sample_weighted.get(aggregation.aggregate)
elif aggregation.extrapolation_mode == ExtrapolationMode.EXTRAPOLATION_MODE_NONE:
agg_func_expr = function_map.get(aggregation.aggregate)
else:
raise BadSnubaRPCRequestException(
f"Unsupported extrapolation mode: {aggregation.extrapolation_mode}"
)
agg_func_expr = function_map.get(aggregation.aggregate)

if agg_func_expr is None:
raise BadSnubaRPCRequestException(
Expand Down

0 comments on commit 2add616

Please sign in to comment.