Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/4074#issuecomment-70301808
  
    This is all there is to it. It's just a convenience method that implements 
the check efficiently. Given several questions on the list, it seems that 
people do want to test for an empty RDD and there hasn't been an accepted way 
to do it that is faster than `count() == 0`:
    
    
http://apache-spark-user-list.1001560.n3.nabble.com/Testing-if-an-RDD-is-empty-td1678.html#a1679
    ... and of course
    http://issues.apache.org/jira/browse/SPARK-5270


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