How can I clean a column using Hive HQL containing this type of string
["A","B","C"]
["ABC","RFG","ERD","BAC"]
in order to get only the values inside " "
separated by the ,
?
Desired output
A,B,C
ABC,RFG,ERD,BAC
I've tried to use regexp_replace
:
regexp_replace(s_agr.sig_tecnologia,'["\]\[]','')
but I'm receiving this error below:
Error: Error while compiling statement: FAILED: SemanticException [Error 10014]: Line 53:1 Wrong arguments '''': No matching method for class org.apache.hadoop.hive.ql.udf.UDFRegExpReplace with (array<string>, string, string). Possible choices: _FUNC_(string, string, string) (state=42000,code=10014)