turboFei edited a comment on issue #27150: [SPARK-30471][SQL] Fix issue when 
comparing String and IntegerType
URL: https://github.com/apache/spark/pull/27150#issuecomment-589916541
 
 
   1. Spark allows cast like "2.34" to  Long/Int before.
   
   2. If we cast String to Long when comparing String and Integer, we need 
throw NumberFormatException when this String is invalid.
   
   3. Without ansi enabled, `select 2.3 = '2.34'` would return true if we cast 
String to Decimal when comparing String and decimal.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to