You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2019/11/26 20:50:29 UTC

[GitHub] [phoenix] gokceni commented on a change in pull request #641: PHOENIX-5589 GlobalIndexChecker does not populate global index relate…

gokceni commented on a change in pull request #641: PHOENIX-5589 GlobalIndexChecker does not populate global index relate…
URL: https://github.com/apache/phoenix/pull/641#discussion_r350973438
 
 

 ##########
 File path: phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java
 ##########
 @@ -958,6 +958,13 @@ public static void setScanAttributesForIndexReadRepair(Scan scan, PTable table,
             // This index table must be being deleted. No need to set the scan attributes
             return;
         }
+        // MetaDataClient modifies the index table name for view indexes if the parent view of an index has a child
+        // view. This, we need to recreate a PTable object with the correct table name for the rest of this code to work
+        if (table.getName().getString().contains(QueryConstants.CHILD_VIEW_INDEX_NAME_SEPARATOR)) {
 
 Review comment:
   Should we add a check here that table is a view?
   Can a user create a table with # in the name?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services