Github user tdas commented on the pull request:

    https://github.com/apache/spark/pull/8881#issuecomment-142689929
  
    You should not be returning in null in the first place from a transform 
function. May be we need to document this better. At least, in the code, we 
should check for whether the returned value is null, and throw a SparkException 
saying "Transform function return null instead of an RDD; this should be 
avoided . You can return an empty RDD using RDD.empty, if you dont want to 
return anything. " I think that should be the right solution here.
    



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