Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4074#discussion_r23136110
  
    --- Diff: core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala ---
    @@ -545,6 +546,12 @@ class RDDSuite extends FunSuite with 
SharedSparkContext {
         assert(sortedTopK === nums.sorted(ord).take(5))
       }
     
    +  test("isEmpty") {
    +    assert(sc.emptyRDD.isEmpty())
    +    assert(sc.parallelize(Seq[Int]()).isEmpty())
    +    assert(!sc.parallelize(Seq(1)).isEmpty())
    --- End diff --
    
    I think the `sc.parallelize(Seq[Int]()` case actually has multiple 
partitions but I'll add this too. Also, I'll check the case where the first 
partition is empty but others aren't.


---
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]

Reply via email to