You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pi Song (JIRA)" <ji...@apache.org> on 2008/07/10 16:54:32 UTC

[jira] Created: (PIG-301) ORDER BY DESC doesn't work at all

ORDER BY DESC doesn't work at all
---------------------------------

                 Key: PIG-301
                 URL: https://issues.apache.org/jira/browse/PIG-301
             Project: Pig
          Issue Type: Bug
    Affects Versions: types_branch
            Reporter: Pi Song


I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Updated: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-301:
-------------------------------

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

patch committed. thanks, alan

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Assignee: Alan Gates
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: orderdesc.patch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Updated: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Pi Song (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pi Song updated PIG-301:
------------------------

    Fix Version/s: types_branch

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>             Fix For: types_branch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Updated: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-301:
---------------------------

    Status: Patch Available  (was: Open)

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Assignee: Alan Gates
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: orderdesc.patch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Updated: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-301:
---------------------------

    Priority: Critical  (was: Major)

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Priority: Critical
>             Fix For: types_branch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Updated: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-301:
---------------------------

    Attachment: orderdesc.patch

This patch provides raw comparators for pig types so that we can handle order by descending.  It uses hadoop's RawComparator interface, because these raw comparators can also implement Configurable.  The ascending/descending array is passed in the JobConf and then deserialized in the setConf call.

Much of the work of this patch was actually done by Santhosh.

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Assignee: Alan Gates
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: orderdesc.patch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Assigned: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates reassigned PIG-301:
------------------------------

    Assignee: Santhosh Srinivasan

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Assignee: Santhosh Srinivasan
>            Priority: Critical
>             Fix For: types_branch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Commented: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Pi Song (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616468#action_12616468 ] 

Pi Song commented on PIG-301:
-----------------------------

The current implementation also doesn't seem to handle different order directions.

{noformat}
B = ORDER A BY $0 DESC, $1 ASC, $2 DESC, $3 ASC
{noformat}

I think implementation-wise, we should somehow implement PigWriteableComparator  using composite design pattern.

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Assignee: Santhosh Srinivasan
>            Priority: Critical
>             Fix For: types_branch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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


[jira] Assigned: (PIG-301) ORDER BY DESC doesn't work at all

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich reassigned PIG-301:
----------------------------------

    Assignee: Alan Gates  (was: Santhosh Srinivasan)

> ORDER BY DESC doesn't work at all
> ---------------------------------
>
>                 Key: PIG-301
>                 URL: https://issues.apache.org/jira/browse/PIG-301
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pi Song
>            Assignee: Alan Gates
>            Priority: Critical
>             Fix For: types_branch
>
>
> I have committed TestOrderBy2.java. Please run and look at the log file.

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