good first issuetype/feature-requestversion:4.2
Description
- https://github.com/StarRocks/starrocks/pull/73680 the funciton trim is not compatible for mysql's trim fucntion,mysql's trim function is very Convenient. https://dev.mysql.com/doc/refman/9.7/en/string-functions.html#function_trim
-- the following 3 is support:
mysql> SELECT TRIM(' bar ');
-> 'bar'
mysql> SELECT TRIM(BOTH 'x' FROM 'xxxbarxxx');
-> 'bar'
-- the following is not support
mysql> SELECT TRIM(LEADING 'x' FROM 'xxxbarxxx');
-> 'barxxx'
mysql> SELECT TRIM(TRAILING 'xyz' FROM 'barxxyz');
-> 'barx'