[
https://issues.apache.org/jira/browse/PHOENIX-2992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars Hofhansl updated PHOENIX-2992:
-----------------------------------
Attachment: 2992-v1.txt
-v1 does that
Passes all tests that I ran.
If you look at {{WhereOptimizerTest.testNoAggregatorForOrderBy}} you'll see
that for AVG the ORDER BY is not removed. Not sure why not, yet.
Please have a look [~giacomotaylor].
If this is direction it should no longer be a subtask of PHOENIX-258 since it
has nothing to do with DistinctPrefixFilter.
> Remove ORDER BY from COUNT(DISTINCT...)-only SELECT statements
> --------------------------------------------------------------
>
> Key: PHOENIX-2992
> URL: https://issues.apache.org/jira/browse/PHOENIX-2992
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Lars Hofhansl
> Assignee: Lars Hofhansl
> Fix For: 4.8.0
>
> Attachments: 2989-orderby-v3.txt, 2992-v1.txt
>
>
> In PHOENIX-2989 we observe that any ORDER BY clause can simply be removed
> from any statement that only SELECTs on COUNT(DISTINCT ...)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)