huonw commented on a change in pull request #23681: [SPARK-26757][GraphX] 
Return 0 for `count` on empty Edge/Vertex RDDs
URL: https://github.com/apache/spark/pull/23681#discussion_r252518268
 
 

 ##########
 File path: graphx/src/test/scala/org/apache/spark/graphx/EdgeRDDSuite.scala
 ##########
 @@ -60,4 +60,15 @@ class EdgeRDDSuite extends SparkFunSuite with 
LocalSparkContext {
     }
   }
 
+  test("count") {
+    withSpark { sc =>
+      val empty = EdgeRDD.fromEdges(sc.emptyRDD[Edge[Int]])
+      assert(empty.count === 0)
+
+      val n = 100
 
 Review comment:
   Oops, copy-paste. Thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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