Hive 内置 自增列 UDF 的使用

xiaoxiao2021-02-28  80

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
转载请注明原文地址: https://www.6miu.com/read-96919.html

最新回复(0)