Mryange opened a new pull request, #40334:
URL: https://github.com/apache/doris/pull/40334

   ## Proposed changes
   
   ```
   mysql [(none)]>set enable_strict_cast_mode = false;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql [(none)]>select cast('1.a' as int);
   +--------------------+
   | cast('1.a' as INT) |
   +--------------------+
   |               NULL |
   +--------------------+
   1 row in set (0.12 sec)
   
   mysql [(none)]>set enable_strict_cast_mode = true;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql [(none)]>select cast('1.a' as int);
   ERROR 1105 (HY000): errCode = 2, detailMessage = 
(127.0.0.1)[INVALID_ARGUMENT]Bad cast from String to Int32 with value : 1.a
   ```
   
   <!--Describe your changes.-->
   
   


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

Reply via email to