StarRocks/starrocks
trim function feature needs improvement
Fechada
#73.172 aberto em 12 de mai. de 2026
good first issuetype/feature-requestversion:4.2
Métricas do repositório
- Stars
- (5.717 estrelas)
- Métricas de merge de PR
- (Mesclagem média 1d 5h) (1.000 fundiu PRs em 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'