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.
嗨,我想为从 Hive 到 concat 的不同名称列使用两个不同的分隔符。例如
Fields Name: col1 ,sc_col1 , col2, col3,sc_col3 <br> Field Values: val1 , scval1 ,val2, val3,scval3
然后查询输出应该是
val1~scval1,val2,val3~scval3
此处如果列名以“sc_”开头,则分隔符为平铺(~),否则分隔符为逗号(,)