如何简化Apache Pig复杂元组

时间:2018-08-21 02:13:50

标签: hadoop apache-pig

我有Pig生成的元组,其格式如下。

({(2018),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017)},{(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham)},1131601)

({(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017)},{(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering)},1047794)

我想简化为

(2018,Newham,1131601)

(2017,Havering,1047794)

我应该如何使用Apache Pig Latin?

0 个答案:

没有答案