[ 
https://issues.apache.org/jira/browse/PIG-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheolsoo Park updated PIG-4062:
-------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to trunk. Thank you Ritesh!

I didn't delete TestTop.java in piggybank in this jira. I'll delete it as part 
of PIG-3947 when removing all the deprecated piggybank functions.

> Add ascending order option to builtin TOP function
> --------------------------------------------------
>
>                 Key: PIG-4062
>                 URL: https://issues.apache.org/jira/browse/PIG-4062
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.11.1
>            Reporter: Ritesh Agrawal
>            Assignee: Ritesh Agrawal
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: PIG-4062.patch, PIG-4062.v2.patch
>
>
> Builtin TOP function orders records in descending order. However in lot of 
> cases you might want to get top N records in ascending order, such as when 
> ordering records by rank, etc. The idea is to extend the TOP function so that 
> it can be configured via DEFINE statement. For example 
> DEFINE TOPASC TOP("ASC");
> To keep it backward compatible, the top function by default will continue to 
> order in descending order. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to