palashc commented on code in PR #1859:
URL: https://github.com/apache/phoenix/pull/1859#discussion_r1562960469
##########
phoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameExtendedIT.java:
##########
@@ -209,21 +209,26 @@ public void testHint() throws Exception {
createIndexOnTable(conn, tableName, indexName2);
populateTable(conn, tableName, 1, 2);
- // Test hint
String tableSelect = "SELECT V1,V2,V3 FROM " + tableName;
ResultSet rs = conn.createStatement().executeQuery("EXPLAIN " +
tableSelect);
- assertEquals(true,
QueryUtil.getExplainPlan(rs).contains(indexName));
+ String plan = QueryUtil.getExplainPlan(rs);
Review Comment:
There is assumption on the ordering of index PTables inside the parent table
PTable. Optimizer can pick any of them but the test assumes only the first one
in the list will get picked.
--
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]