Github user ankitsinghal commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/153#discussion_r57609323
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/iterate/ExplainTable.java ---
@@ -120,7 +120,7 @@ protected void explain(String prefix, List<String>
planSteps) {
} else {
explainSkipScan(buf);
}
- buf.append("OVER
").append(tableRef.getTable().getPhysicalName().getString());
+ buf.append("OVER
").append(tableRef.getTable().getPhoenixPhysicalName().getString());
--- End diff --
getPhoenixPhysicalName() is required to get phoenix table name (X.Y) , this
is different from getName() as in case of view, it return phoenix name of the
data table ,which sometimes required for "Explain" plan or sometimes to get
tableRef for data table. I think , we can have different name for this method
to avoid confusion.
getPhysicalName gives the hbase representation(X:Y) of table/view depending
upon isNamespaceMapped flag.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---