tkhurana commented on code in PR #1807:
URL: https://github.com/apache/phoenix/pull/1807#discussion_r1482125439


##########
phoenix-core-client/src/main/java/org/apache/phoenix/schema/MetaDataClient.java:
##########
@@ -716,9 +716,10 @@ public MetaDataMutationResult updateCache(PName 
origTenantId, String schemaName,
                             // In this case, we update the parent table which 
may in turn pull
                             // in indexes to add to this table.
                             long resolvedTime = 
TransactionUtil.getResolvedTime(connection, result);
-                            if (addColumnsAndIndexesFromAncestors(result, 
resolvedTimestamp,
+                            if 
(addColumnsIndexesAndLastDDLTimestampsFromAncestors(result, resolvedTimestamp,
                                     true, false)) {
-                                connection.addTable(result.getTable(), 
resolvedTime);
+                                
connection.addTable(updateIndexesWithAncestorMap(result.getTable()),

Review Comment:
   The Ptable in result is different from the Ptable in cache



-- 
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: issues-unsubscr...@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to