palashc commented on code in PR #1936:
URL: https://github.com/apache/phoenix/pull/1936#discussion_r1706159145


##########
phoenix-core-client/src/main/java/org/apache/phoenix/compile/QueryCompiler.java:
##########
@@ -705,6 +717,9 @@ protected QueryPlan compileSubquery(
                     statement,
                     queryPlan);
         }
+        if (parentContext != null) {
+            parentContext.addSubStatementContext(queryPlan.getContext());

Review Comment:
   @tkhurana This is to keep track of the Context for nested/inner Select 
queries. During `getReadMetrics` in `PhoenixResultSet`, we combine the metrics 
from the inner contexts with the outer context. 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to