cloud-fan commented on pull request #33212:
URL: https://github.com/apache/spark/pull/33212#issuecomment-873934648


   > should return a default value instead of null for the primitive type
   
   I don't agree with this. It's a correctness bug if an integer value is null 
in the JSON file but Spark read it as 0. We should fail at runtime. We can 
either do this null check in the jackson parser, or leverage the 
`AssertNotNull` expression.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to