雅典娜的正确案例 SQL

Proper Case in Athena SQL

我是 Athena 的新手,正在尝试将字段 'Country' 转换为正确的大小写。例如:

united states -> United States

有没有办法在 Athena 中做到这一点?

将评论变成答案:

Athena engine version 2 gives in its RegEx section 例如
regexp_replace(string, pattern, function)

SELECT regexp_replace('new york', '(\w)(\w*)', x -> upper(x[1]) || lower(x[2])); --'New York'