Removing duplicates using PigLatin

后端 未结 2 836
一向
一向 2020-12-29 13:01

I\'m using PigLatin to filter some records.

User1  8 NYC 
User1  9 NYC 
User1  7 LA 
User2  4 NYC
User2  3 DC 

The script should remove the

2条回答
  •  悲&欢浪女
    2020-12-29 13:39

    Pig provide DISTINCT command to select unique data. If you want use distinct on fields Use Distinct in foreach nested block.

提交回复
热议问题