【发布时间】:2021-04-19 01:41:35
【问题描述】:
我目前有如下情况
replace(replace(replace(replace(replace(replace(replace(replace(UPPER(FIELDNAME),' ',''),'LLC',''),'INC',''),'INTERNATIONAL',''),'LTD',''),'.',''),',',''),'QMT','')
在 Hive 中服务于完全相同的目的的等效功能是什么? regexp_replace 是否适用于上述场景?
在上述情况下使用了 regexp_replace 而不是替换,但它给我抛出了以下错误。
FAILED: SemanticException [Error 10014]: Line 1:255 Wrong arguments ''('': No matching method for class org.apache.hadoop.hive.ql.udf.UDFRegExpReplace with (string, string). Possible choices: _FUNC_(string, string, string) (state=42000,code=10014)
如果有人能在这方面提供帮助,那就太好了。谢谢
【问题讨论】: