How can I add row numbers for rows in PIG or HIVE?

前端 未结 8 1875
半阙折子戏
半阙折子戏 2020-12-17 02:18

I have a problem when adding row numbers using Apache Pig. The problem is that I have a STR_ID column and I want to add a ROW_NUM column for the data in STR_ID, which is the

8条回答
  •  春和景丽
    2020-12-17 03:17

    From version 0.11, hive supports analytic functions like lead,lag and also row number

    https://issues.apache.org/jira/browse/HIVE-896

提交回复
热议问题