Github user HyukjinKwon commented on the pull request:

    https://github.com/apache/spark/pull/10980#issuecomment-188103804
  
    I am closing this.
    
    BTW, I think the issue itself is a little bit questionable at the end. If 
we can apply the same rules for casting, then it would be great to re-use the 
`Cast()` but both CSV and JSON data sources are dealing with data types 
differently. 
    
    As long as we are not going to this behaviour for backwards compatibility, 
I believe this issue is invalid or this will end up with some additional logics 
like I just did in this PR with some cases to deal with the differences.


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