Looks good. That is along the lines I was thinking. One suggestion I have is
to allow constants to be passed to the comparator:
ORDER a BY zipcode USING
com.mycompany.myproject.MyOrderByClass('specialvariant17');
Any constants would be passed to the constructor.
ben
On Friday 02 November 2007 16:05:47 Alan Gates wrote:
> All,
>
> I've posted a proposal at http://wiki.apache.org/pig/UserDefinedOrdering
> for how to add user defined ordering to pig. This is being urgently
> requested by some of our users.
>
> Utkarsh, please review this and make sure I properly understood how to
> hook things together in the logical and physical plans. I'm not 100%
> confident what I proposed will work in the current framework.
>
> Alan.