StarRocks/starrocks

trim function feature needs improvement

已关闭

#73,172 创建于 2026年5月12日

 (0 条评论) (0 个反应) (0 位负责人)Java (1,246 个派生)batch import
good first issuetype/feature-requestversion:4.2

仓库指标

星标
 (5,717 个星标)
PR 合并指标
 (平均合并 1天 5小时) (30 天内合并 1,000 个 PR)

描述

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

贡献者指南