Github user jerryshao commented on the pull request:

    https://github.com/apache/spark/pull/8881#issuecomment-143269767
  
    I cannot remember very clearly, `count()` may introduce incorrect result 
when you use `None` instead of `RDD.empty` as I remembered.
    
    In the early version some operators actually return `None` instead of 
`RDD.empty`, that's why this interface is designed like this. But `None` will 
introduce some problem, I remembered TD fixed several this kind of bugs by 
changing to empty RDD instead of None. TD might better know this issue. 


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