gokceni commented on a change in pull request #1170:
URL: https://github.com/apache/phoenix/pull/1170#discussion_r605282359



##########
File path: phoenix-core/src/main/java/org/apache/phoenix/schema/PTableImpl.java
##########
@@ -1559,7 +1586,29 @@ public PName getParentTableName() {
     @Override
     public PName getParentName() {
         // a view on a table will not have a parent name but will have a 
physical table name (which is the parent)
-        return (type!=PTableType.VIEW || parentName!=null) ? parentName : 
getPhysicalName();
+        // Update to above comment: we will return logical name of view parent 
base table

Review comment:
       This is the existing logic. If this is a child view of another view, the 
parent is the immediate parent view. If it is a view directly on top of a 
table, the parent is the logical name of the table. Removed that comment.




-- 
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:
[email protected]


Reply via email to