tkhurana commented on a change in pull request #1215: URL: https://github.com/apache/phoenix/pull/1215#discussion_r625365945
########## File path: phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java ########## @@ -498,18 +508,29 @@ public void run() { exec.shutdownNow(); int finalResult = nThreads * nCommits * nIncrementsPerCommit; - //assertEquals(finalResult,resultHolder[0]); - ResultSet rs = conn.createStatement().executeQuery("SELECT * FROM " + tableName + " WHERE counter1 >= 0"); + boolean isIndexCreated = this.indexDDL != null && this.indexDDL.length() > 0; + + ResultSet rs; + String selectSql = "SELECT * FROM " + tableName + " WHERE counter1 >= 0"; + if (isIndexCreated) { + rs = conn.createStatement().executeQuery("EXPLAIN " + selectSql); + String actualExplainPlan = QueryUtil.getExplainPlan(rs); + IndexToolIT.assertExplainPlan(this.indexDDL.contains("local"), actualExplainPlan, Review comment: Yes, it passes for all index. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org