morningman commented 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org