Genmao Yu created SPARK-29973:
---------------------------------
Summary: 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
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]