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


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   Doris some function not support all the characters.
   
   here is the case in PAD.
   ```
   mysql> SELECT LPAD('海淀黄庄',4,'北京');
   +-----------------------------------+
   | lpad('海淀黄庄', 4, '北京')       |
   +-----------------------------------+
   | 海�                                |
   +-----------------------------------+
   1 row in set (0.02 sec)
   
   mysql> SELECT RPAD('海淀黄庄',4,'北京');
   +-----------------------------------+
   | rpad('海淀黄庄', 4, '北京')       |
   +-----------------------------------+
   | 海�                                |
   +-----------------------------------+
   1 row in set (0.01 sec)
   ```
   
   
   ### What You Expected?
   
   I find some string functions and other window functions not support all the 
characters.
   here is the right ans in MySQL
   ```
   MySQL starting ...
   LPAD('海淀黄庄',4,'北京')
   海淀黄庄
   RPAD('海淀黄庄',4,'北京')
   海淀黄庄
   
   运行结束,执行耗时:1272毫秒
   ```
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   I will try to fix it.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to