Github user HyukjinKwon commented on the pull request: https://github.com/apache/spark/pull/8718#issuecomment-140368436 I think in that cast it does not create any condition as `double -> int -> double` means, the field type is int and the given value type is double. Losing precision during this convert means the given value cannot be converted to the field type. (I might misunderstood your comment). I just tested and added some more test codes. Could you give me the case you think? I tested and added some more test codes for other type conversions. Could you give me a specific case?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org