You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Genmao Yu (Jira)" <ji...@apache.org> on 2019/11/20 14:12:00 UTC
[jira] [Created] (SPARK-29973) Use nano time to calculate
'processedRowsPerSecond' to avoid 'NaN'/'Infinity'
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org