how to replace characters in hive?

后端 未结 5 1139
-上瘾入骨i
-上瘾入骨i 2020-12-05 13:56

I have a string column description in a hive table which may contain tab characters \'\\t\', these characters are however messing some views when c

5条回答
  •  我在风中等你
    2020-12-05 14:26

    You can also use translate(). If the third argument is too short, the corresponding characters from the second argument are deleted. Unlike regexp_replace() you don't need to worry about special characters. Source code.

    https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-StringFunctions

提交回复
热议问题