[ 
https://issues.apache.org/jira/browse/PHOENIX-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338805#comment-15338805
 ] 

Lars Hofhansl commented on PHOENIX-3005:
----------------------------------------

In the debugger I see that we happen to detect to that this is an ungrouped 
aggregate, so in GroupBy.compile(...) we return UNGROUPED_GROUP_BY (which is 
order preserving). The order preserving tracker definitely returns false, and 
it is called only once.

In your test:
{{assertTrue(plan.getGroupBy().isOrderPreserving());}} passes even when 
{{conn.createStatement().execute("CREATE INDEX idx ON t(v1)");}} is commented 
out.


> Use DistinctPrefixFilter for DISTINCT index scans
> -------------------------------------------------
>
>                 Key: PHOENIX-3005
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3005
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Lars Hofhansl
>             Fix For: 4.8.0
>
>
> Currently the optimization in PHOENIX-258 is not used for DISTINCT index 
> scans. We should add that as well.



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

Reply via email to