[
https://issues.apache.org/jira/browse/PHOENIX-2444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15026238#comment-15026238
]
James Taylor commented on PHOENIX-2444:
---------------------------------------
+1. Thanks for the patch, [~maryannxue].
> Expansion of derived table query works incorrectly with aggregate over order
> by
> -------------------------------------------------------------------------------
>
> Key: PHOENIX-2444
> URL: https://issues.apache.org/jira/browse/PHOENIX-2444
> Project: Phoenix
> Issue Type: Bug
> Reporter: Maryann Xue
> Assignee: Maryann Xue
> Priority: Minor
> Attachments: PHOENIX-2444.patch
>
>
> Example:
> "select max(a) from (select * from t order by b) as t0"
> was rewritten wrongly as
> "select max(a) from t order by b"
> while it should be equivalent to
> "select max(a) from (select * from t) as t0"
> and should be rewritten as
> "select max(a) from t".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)