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



##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/schema/PMetaDataImpl.java
##########
@@ -147,8 +157,14 @@ public void addTable(PTable table, long resolvedTime) 
throws SQLException {
         for (PTable index : table.getIndexes()) {
             metaData.put(index.getKey(), tableRefFactory.makePTableRef(index, 
this.timeKeeper.getCurrentTime(), resolvedTime));
         }
+        if (table.getPhysicalTableName() != null && 
!table.getPhysicalTableName().getString().equals(table.getTableName().getString()))
 {
+            String physicalTableName =  
table.getPhysicalTableName().getString().replace(
+                    QueryConstants.NAMESPACE_SEPARATOR, 
QueryConstants.NAME_SEPARATOR);
+            String physicalTableFullName = 
SchemaUtil.getTableName(table.getSchemaName() != null ? 
table.getSchemaName().getString() : null, physicalTableName);
+            this.physicalNameToLogicalTableMap.put(physicalTableFullName, key);
+        }
     }
-
+    private static final Logger LOGGER = 
LoggerFactory.getLogger(PTableImpl.class);

Review comment:
       removed

##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/schema/PMetaDataImpl.java
##########
@@ -21,18 +21,24 @@
 
 import java.sql.SQLException;
 import java.util.Collections;
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 
+import com.google.common.base.Strings;

Review comment:
       removed




-- 
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