HeartSaVioR edited a comment on issue #26610: [SPARK-29973][SS] Use nano time 
to avoid 'NaN'/'Infinity'
URL: https://github.com/apache/spark/pull/26610#issuecomment-556899657
 
 
   I tend to agree with @srowen as handle the case exceptionally (like changing 
to 0.001 if the value is 0 - just assume it as 1ms which wouldn't be a big 
deal) given I don't think a micro-batch under 1ms is realistic in most of 
cases, but if we still want to calculate it "accurately", define the new local 
variable for nanoTime to calculate duration instead of changing existing local 
variable which is also used for representing wall-clock.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to