[
https://issues.apache.org/jira/browse/PHOENIX-4964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649099#comment-16649099
]
Hudson commented on PHOENIX-4964:
---------------------------------
FAILURE: Integrated in Jenkins build PreCommit-PHOENIX-Build #2088 (See
[https://builds.apache.org/job/PreCommit-PHOENIX-Build/2088/])
PHOENIX-4964 ORDER BY should use a LOCAL index even if the query is not (larsh:
rev 716530ae5bf951c9891a2830d8ec51f740d818b2)
* (edit)
phoenix-core/src/it/java/org/apache/phoenix/end2end/index/LocalIndexIT.java
* (edit)
phoenix-core/src/main/java/org/apache/phoenix/optimize/QueryOptimizer.java
> ORDER BY should use a LOCAL index even if the query is not fully covered
> ------------------------------------------------------------------------
>
> Key: PHOENIX-4964
> URL: https://issues.apache.org/jira/browse/PHOENIX-4964
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Lars Hofhansl
> Assignee: Lars Hofhansl
> Priority: Minor
> Fix For: 4.15.0, 4.14.1, 5.1.0
>
> Attachments: PHOENIX-4964-4.x-HBase-1.4.txt,
> PHOENIX-4964-4.x-HBase-1.4.v2.txt, PHOENIX-4964-4.x-HBase-1.4.v3.txt,
> PHOENIX-4964-4.x-HBase-1.4.v4.txt
>
>
> I just noticed that a query like
> {{SELECT <column1> FROM <table> ORDER BY <column2> LIMIT <n>}}
> Does not use an index on <column2> if it does not also include <column1>.
> That seems too limited.
> I can see the code in QueryOptimizer.addPlan that rewrites the plan only when
> there's a WHERE clause, and then only for the WHERE clause.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)