virajjasani commented on code in PR #1737:
URL: https://github.com/apache/phoenix/pull/1737#discussion_r1401264578
##########
phoenix-core/src/main/java/org/apache/phoenix/iterate/ExplainTable.java:
##########
@@ -147,7 +148,20 @@ protected void explain(String prefix,
scanTypeDetails = explainSkipScan();
}
buf.append(scanTypeDetails);
- buf.append("OVER
").append(tableRef.getTable().getPhysicalName().getString());
+
+ String tableName = tableRef.getTable().getPhysicalName().getString();
+ if (ScanUtil.isLocalIndex(scan)) {
Review Comment:
Rather than `ScanUtil#isLocalIndex`, we should check PTable index type:
```
@Override
public IndexType getIndexType() {
return indexType;
}
```
--
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]