priyankporwal commented on a change in pull request #495: PHOENIX-4703 Make
indextool changes to drop before rebuild
URL: https://github.com/apache/phoenix/pull/495#discussion_r280136822
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
##########
@@ -743,6 +764,32 @@ public int run(String[] args) throws Exception {
}
}
+ private void deleteBeforeRebuild(Connection conn) throws SQLException,
IOException {
+ if
(MetaDataUtil.isViewIndex(pIndexTable.getPhysicalName().getString())) {
+ throw new IllegalArgumentException(String.format(
+ " %s is a view index table. Delete all before rebuild is
not supported for view indexes",
Review comment:
Nits:
#1: Space before %s
#2: 'view index table' or 'view index'?
#3: deleteall instead of 'Delete all' to match the option name
#4: Do we use indexes here or indices?
----------------------------------------------------------------
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]
With regards,
Apache Git Services