You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2021/08/24 13:57:58 UTC

[GitHub] [phoenix] richardantal commented on pull request #1287: PHOENIX-5072 Cursor Query Loops Eternally with Local Index, Returns F…

richardantal commented on pull request #1287:
URL: https://github.com/apache/phoenix/pull/1287#issuecomment-904666473


   The ScanPlan in CursorFetchPlan was not using the index when we called the optimize on the CursorFetchPlan it added a simple ScanPlan (using the index) to the applicablePlans and at the and it got selected as the best one.
   https://github.com/apache/phoenix/blob/9dfb423b3928287857f348cae033626ac5339b36/phoenix-core/src/main/java/org/apache/phoenix/optimize/QueryOptimizer.java#L245
   
   I've updated the constructor to optimize the ScanPlan at the first place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org