good first issuetype/feature-requestversion:4.2
Repository metrics
- Stars
- (5,717 stars)
- PR merge metrics
- (Avg merge 1d 5h) (1,000 merged PRs in 30d)
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'