vmeka2020 commented on code in PR #2246: URL: https://github.com/apache/phoenix/pull/2246#discussion_r2238279209
########## phoenix-core/src/it/java/org/apache/phoenix/jdbc/LoggingConnectionLimiterIT.java: ########## @@ -186,6 +187,55 @@ public void testActivityLogsOnQueryWhenFailures() throws Exception { } + @Test + public void testQueryExplainPlan() throws Exception { + + String query = "SELECT * FROM " + tableName; // FULL SCAN + + if (getConnection() instanceof PhoenixConnection) { + try (PhoenixConnection pconn = getConnection().unwrap(PhoenixConnection.class); + Statement stmt = pconn.createStatement()) { + ResultSet rs = stmt.executeQuery(query); + while (rs.next()) { + // do nothing + } + boolean queryPlanFound = false; + String queryPlan = pconn.getActivityLogger().getExplainPlanInfo(); Review Comment: @virajjasani added the UT -- 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-unsubscr...@phoenix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org