Github user yhuai commented on the pull request:

    https://github.com/apache/spark/pull/10331#issuecomment-165617207
  
    @liancheng Regarding the scope of this jira, my understanding is that when 
we create JVM objects, if there is any null values and we are trying to set 
them to primitive fields of the class, we should throw a Runtime exception to 
ask them to use Option or non-primitive JVM type (e.g. java.lang.Integer 
instead of Int). This is a runtime check. For example, we want to encode a row 
to a case class `case class TestData(a: Int)`. If the first value of a row is 
`null`, we should throw the Runtime exception when we try to create a 
`TestData` instance because `a` is a primitive type field.


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