tkhurana commented on code in PR #1883:
URL: https://github.com/apache/phoenix/pull/1883#discussion_r1638958170


##########
phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/PhoenixStatement.java:
##########
@@ -377,6 +387,14 @@ private PhoenixResultSet executeQuery(final 
CompilableStatement stmt,
                                 plan =
                                         
connection.getQueryServices().getOptimizer()
                                                 
.optimize(PhoenixStatement.this, plan);
+                                setLastQueryPlan(plan);
+
+                                //verify metadata for the table/view/index in 
the query plan
+                                //plan.getTableRef can be null in some cases 
like EXPLAIN <query>

Review Comment:
   Nice comment



-- 
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