Hive--行转列(Lateral View explode())和列转行(collect_set() 去重)
1.行转列1.1问题引入:如何将ab1,2,3cd4,5,6变为:ab1ab2ab3cd4cd5cd61.2原始数据:test.txtab1,2,3cd4,5,61.3解决方法方案1:droptabletest_jzl_20140701_test;建表:createtabletest_jzl_20140701_test(col1string,col2string,col3string)rowfor