Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我有一些数据,例如:a|b|c|/r/n并且我想将列转换'/r/n'为 ' '. 蜂巢能做到吗?从 Hive 导出时,某些null列将导出到/r/n,所以我想更改'/r/n'为''. 我有很多数据要导出,因此我想在 Hive 中进行。
a|b|c|/r/n
'/r/n'
' '
null
/r/n
''
如果column4 等于 '/r/n' 替换为 '' 如下所示。
select if(col4='/r/n','',col4) from table1