Astralidea edited a comment on issue #4544: URL: https://github.com/apache/incubator-doris/issues/4544#issuecomment-688531697
https://dev.mysql.com/doc/refman/5.7/en/type-conversion.html MySQL automatically converts strings to numbers as necessary, and vice versa. If follow the MySQL method, 'abc' will be converted to 0. other examples: ``` select '2.34' = 2.34,'2.34abc' = 2.34, 'abc2.34' = 2.34, '2 .34abc' = 2.34, '2 .34abc' = 2, 'abc' = 0, 'abc' = 1; ``` results: 1 1 0 0 1 1 0 so the ``` select * from tbl1 join tbl3 on tbl1.k1 = tbl3.k1 where tbl3.k1 in ('abc'); ``` will be rewrite as ``` select * from tbl1 join tbl3 on tbl1.k1 = tbl3.k1 where tbl3.k1 in (0); ``` does Doris want to be compatible with this type conversion? ---------------------------------------------------------------- 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]
