gengliangwang edited a comment on pull request #29837: URL: https://github.com/apache/spark/pull/29837#issuecomment-709809437
 This is **not true**. The type conversion rules are more complex than that. ``` spark-sql> explain select 1 in (2, 'a'); *(1) Project [false AS (CAST(1 AS STRING) IN (CAST(2 AS STRING), CAST(a AS STRING)))#19] spark-sql> explain select 1 = '2'; *(1) Project [false AS (1 = CAST(2 AS INT))#11] spark-sql> explain select 1 + '2'; *(1) Project [3.0 AS (CAST(1 AS DOUBLE) + CAST(2 AS DOUBLE))#17] ``` ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
