Support INITCAP string function
Description Currently, StarRocks supports basic string case conversion functions like LOWER() and UPPER(), but it does not support INITCAP(). INITCAP is commonly available in Oracle, PostgreSQL, and Snowflake, and is useful for text formatting tasks, especially in reporting and data cleaning scenarios.
Proposal Add support for INITCAP(string) which capitalizes the first letter of each word and converts the rest to lowercase. • Words are delimited by whitespace or punctuation. • Behavior should be consistent with PostgreSQL’s INITCAP.
Example
SELECT INITCAP('hello world, STARROCKS database');
-- Expected: 'Hello World, Starrocks Database'
Use Cases • Standardizing names (e.g., john DOE → John Doe) • Formatting addresses, titles, or labels in BI queries • Simplifying ETL pipelines that require consistent casing
I would like to work on this, can you assign me? @murphyatwork
Hi @murphyatwork, If the currently assigned contributor is no longer working on this issue, could you please reassign it to me? I would like to work on it and try implementing INITCAP().
Thanks!