[ 
https://issues.apache.org/jira/browse/SPARK-29973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean R. Owen reassigned SPARK-29973:
------------------------------------

    Assignee: Genmao Yu

> Use nano time to calculate 'processedRowsPerSecond' to avoid 'NaN'/'Infinity'
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-29973
>                 URL: https://issues.apache.org/jira/browse/SPARK-29973
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 3.0.0
>            Reporter: Genmao Yu
>            Assignee: Genmao Yu
>            Priority: Minor
>
> The {{"processingTimeSec"}} of batch may be less than 1 millis.  As 
> {{"processingTimeSec"}} is calculated in millis, so {{"processingTimeSec"}} 
> equals 0L. If there is no data in this batch, the 
> {{"processedRowsPerSecond"}} equals {{"0/0.0d"}}, i.e. {{"Double.NaN"}}. If 
> there are some data in this batch, the {{"processedRowsPerSecond"}} equals 
> {{"N/0.0d"}}, i.e. {{"Double.Infinity"}}.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to