Transform bag of key-value tuples to map in Apache Pig

前端 未结 2 1975
忘了有多久
忘了有多久 2021-01-02 11:56

I am new to Pig and I want to convert a bag of tuples to a map with specific value in each tuple as key. Basically I want to change:

{(id1, value1),(id2, value

2条回答
  •  情话喂你
    2021-01-02 12:08

    I ran into the same situation so I submitted a patch that just got accepted: https://issues.apache.org/jira/browse/PIG-4638

    This means that what you wanted is a core part starting with pig 0.16.

提交回复
热议问题