Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/8881#issuecomment-142897772
@jhu-chang I still don't see why you say a user can write logic to return a
null RDD, but can't write an if statement to handle it? a user who can use
`DStream` is surely capable of this. I think it's more surprising if you're
allowed to make a transformation that returns nothing, yet write a program that
tries to use it.
What is the problem with an empty RDD? Returning an empty RDD is not the
same as what you're suggesting. It's an RDD that has nothing in it. It's
meaningful to operate on it further. If the application doesn't wish to, it can
write logic to do something different for an RDD.
---
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]