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/09/09 08:23:17 UTC
[GitHub] [phoenix] richardantal commented on a change in pull request #1287: PHOENIX-5072 Cursor Query Loops Eternally with Local Index, Returns F…
richardantal commented on a change in pull request #1287:
URL: https://github.com/apache/phoenix/pull/1287#discussion_r705102623
##########
File path: phoenix-core/src/main/java/org/apache/phoenix/compile/DeclareCursorCompiler.java
##########
@@ -45,10 +45,11 @@
private final Operation operation;
private QueryPlan queryPlan;
- public DeclareCursorCompiler(PhoenixStatement statement, Operation operation, QueryPlan queryPlan) {
+ public DeclareCursorCompiler(PhoenixStatement statement, Operation operation, QueryPlan queryPlan) throws SQLException {
this.statement = statement;
this.operation = operation;
- this.queryPlan = queryPlan;
+ this.queryPlan = statement.getConnection().getQueryServices().getOptimizer()
Review comment:
With this change we optimize the plan inside the CursorFetchPlan.
Later when the next optimize is called, the original CursorFetchPlan will be selected as there won't be any better plans.
--
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