SyntaxFix
Write A Post
Hire A Developer
Questions
You can use hive string function CONCAT_WS( string delimiter, string str1, string str2...strn )
CONCAT_WS( string delimiter, string str1, string str2...strn )
for ex:
hive -e 'select CONCAT_WS(',',cola,colb,colc...,coln) from Mytable' > /home/user/Mycsv.csv