maropu commented on issue #25300: [SPARK-28503][SQL] Return null result on cast 
an out-of-range value to a integral type
URL: https://github.com/apache/spark/pull/25300#issuecomment-516695674
 
 
   I've left the same comment in 
https://github.com/apache/spark/pull/25239#discussion_r307068104 though, `Cast` 
itself needs to support this kind of upcast behaivours? As another option, we 
could check value ranges by `IF` expressions: 
https://github.com/apache/spark/compare/master...maropu:SPARK-28503

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to