hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-20) Sorting using custom comparison functions
Date Tue, 27 Nov 2007 23:19:43 GMT

    [ https://issues.apache.org/jira/browse/PIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546045

Alan Gates commented on PIG-20:

After looking at it some I'm convinced that for the time being what Patrick has submitted
will work.  (All the unit and nightly tests pass, so there's some backing for my conviction.)
 In all the places where getComparator is called and the user provided ordering function needs
to be used, instantiateFunc will have already been called.  

In the long run I think the right solution is to make PigContext a singleton so that instantiateFunc
can be called at any time as needed.  In the short term I think we should take the patch as
previously submitted and file a bug to fix the PigContext singleton issue.  Unless I hear
howls of dissent that's what I'll do.

> Sorting  using custom comparison functions
> ------------------------------------------
>                 Key: PIG-20
>                 URL: https://issues.apache.org/jira/browse/PIG-20
>             Project: Pig
>          Issue Type: New Feature
>          Components: impl
>            Reporter: Olga Natkovich
>         Attachments: usercompare.patch
> Currently, onlu string based sorting is supported. Once we have types, numeric sort will
be supported as well. However, soem users express need for custome comparison functions for
> Alan put together a design document for this:
> http://wiki.apache.org/pig/UserDefinedOrdering

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message