Skip to content

Commit

Permalink
[BEAM-11578] Fix TypeError in dataflow_metrics has 0 distribution sum (
Browse files Browse the repository at this point in the history
  • Loading branch information
Abacn authored May 23, 2022
1 parent ebb1a66 commit ac24771
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _get_metric_value(self, metric):
dist_sum = _get_match(
metric.distribution.object_value.properties,
lambda x: x.key == 'sum').value.integer_value
if not dist_sum:
if dist_sum is None:
# distribution metric is not meant to use on large values, but in case
# it is, the value can overflow and become double_value, the correctness
# of the value may not be guaranteed.
Expand Down

0 comments on commit ac24771

Please sign in to comment.