You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/09/07 22:46:46 UTC

[GitHub] [incubator-doris] Astralidea commented on issue #4544: [SQL][Bug] Column type judgment error

Astralidea commented 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 you 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
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org