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 2021/12/25 03:33:28 UTC

[GitHub] [incubator-doris] morningman edited a comment on pull request #7483: [Bug] fix string to decimal parser about exponent

morningman edited a comment on pull request #7483:
URL: https://github.com/apache/incubator-doris/pull/7483#issuecomment-1000967399


   In MySQL, it will also return 0 but with a warnings.
   Doris currently don't have warning system, so I think we should simply make it same as mysql?
   
   ```
   mysql> select cast("e465s" as decimal);
   +--------------------------+
   | cast("e465s" as decimal) |
   +--------------------------+
   |                        0 |
   +--------------------------+
   1 row in set, 1 warning (0.06 sec)
   
   mysql> show warnings;
   +---------+------+--------------------------------------------+
   | Level   | Code | Message                                    |
   +---------+------+--------------------------------------------+
   | Warning | 1292 | Truncated incorrect DECIMAL value: 'e465s' |
   +---------+------+--------------------------------------------+
   1 row in set (0.06 sec)
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

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