Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/5489#discussion_r28233582
--- Diff: core/src/test/scala/org/apache/spark/rdd/DoubleRDDSuite.scala ---
@@ -18,10 +18,17 @@
package org.apache.spark.rdd
import org.scalatest.FunSuite
+import org.scalatest.Matchers._
import org.apache.spark._
class DoubleRDDSuite extends FunSuite with SharedSparkContext {
+ test("sum") {
+ sc.parallelize(Seq.empty[Double]).sum() should be(0.0 +- 0.0001)
--- End diff --
Doubles aren't unstable; `0.0 == 0.0` always. Yes i know what you mean but
in these cases we can expect the result to exact to machine precision, always.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]