[ 
https://issues.apache.org/jira/browse/BEAM-12755?focusedWorklogId=638286&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-638286
 ]

ASF GitHub Bot logged work on BEAM-12755:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Aug/21 16:48
            Start Date: 16/Aug/21 16:48
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #15329:
URL: https://github.com/apache/beam/pull/15329#issuecomment-899659575






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 638286)
    Time Spent: 40m  (was: 0.5h)

> Clean-up HistogramData to not throw errors during formatting
> ------------------------------------------------------------
>
>                 Key: BEAM-12755
>                 URL: https://issues.apache.org/jira/browse/BEAM-12755
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: P3
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> HistogramData throws an exception because DoubleMath.roundToInt throws an 
> arithmetic exception when infinity is used.
> Instead use String.format with %.0f formatting since it will appropriately 
> format Inf, -Inf and NaN. It already used HALF_UP rounding as well as per the 
> javadoc.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to