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

Patrick Hunt commented on PIG-20:
---------------------------------

1) I can randomize the data however notice that I'm typically using in reverse 
order, such that the sort is not just "passing through". I'll add this.

2) What is the contract for instantiateFunc (and getComparator) method, I can't 
find it documented anywhere. This would help a lot in understanding how to 
address this issue. Perhaps someone can update the javadoc to make it explicit 
(would be beneficial going fwd, even after this change). I would be willing to 
do this but I don't understand the background/expectations of this function. 
Original author avail?

3a) I have eclipse set to use spaces instead of tabs, must have snuck in during 
copy/paste. I'll take a look.

3b) er, looks like another eclipse issue (my config), I'll fix the source.

> 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 sort.
> 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.

Reply via email to