StarRocks/starrocks

trim function feature needs improvement

Closed

#73,172 opened on May 12, 2026

 (0 comments) (0 reactions) (0 assignees)Java (1,246 forks)batch import
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

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

Contributor guide