sduzh opened a new issue #3861:
URL: https://github.com/apache/incubator-doris/issues/3861


   **Describe the bug**
   Incorrect result of CAST ... AS CHAR
   
   **To Reproduce**
   SELECT cast('20190101' AS CHAR(2));
   
   **Expected behavior**
   ```
   +-----------------------------+
   | cast('20190101' as CHAR(2)) |
   +-----------------------------+
   | 20                          |
   +-----------------------------+
   ```
   
   **Real behavior**
   ```
   +-------------------------------+
   | CAST('20190101' AS CHARACTER) |
   +-------------------------------+
   | 20190101                      |
   +-------------------------------+
   ```
   


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