我希望在Pig中实现以下功能。我有一组这样的示例记录。请注意,EffectiveDate列有时为空,并且对于同一CustomerID也不同。现在,作为输出,我希望每个CustomerID有一个记录,其中EffectiveDate是最大值。因此,对于上面的示例,我希望记录突出显示如下所示。我目前使用PIG的方式是这样的:customerdata=LOAD'customerdata'AS(CustomerID:chararray,CustomerName:chararray,Age:int,Gender:chararray,EffectiveDate:chararray);--Groupc