Hive 版本:Apache hive-1.2.1
命令:
add jar ${HIVE_HOME}/lib/hive-contrib-
1.2.1.jar;
create temporary
function row_sequence as
'org.apache.hadoop.hive.contrib.udf.UDFRowSequence';
select row_sequence(), column1, column2,
... from tablename
Reference:
http://blog.csdn.net/xiaoshunzi111/article/details/68067674