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-589565070
 
 
   Thanks, It makes sense.
   Original, when comparing String and decimal, both left and right ops would 
be converted to double type, and it may be fatal when the comparator is used 
for join conditions.
   
   In fact, the user should not allow string type compare with numeric type.
   Now that postgre has similar behavior  compare String with Long, we can 
follow it.
   It's more reasonable to classify this problem into several cases than just 
converting both them to double type.

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