You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/04/01 19:18:25 UTC

[jira] [Updated] (PHOENIX-2802) Merge sort usually not necessary for ORDERED aggregation

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

James Taylor updated PHOENIX-2802:
----------------------------------
    Summary: Merge sort usually not necessary for ORDERED aggregation  (was: Reverse scan of in-place, ordered aggregation may produce incorrect results)

> Merge sort usually not necessary for ORDERED aggregation
> --------------------------------------------------------
>
>                 Key: PHOENIX-2802
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2802
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: James Taylor
>            Assignee: James Taylor
>             Fix For: 4.8.0
>
>         Attachments: PHOENIX-2802.patch
>
>
> Try something like the following query:
> {code}
> select pod, count(*) as orgs from organization group by pod order by pod desc;
> {code}
> versus this one:
> {code}
> select pod, count(*) as orgs from organization group by pod order by pod asc;
> {code}
> There may be some missing logic in how we setup the client-side order by in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)