swaroopak commented on a change in pull request #520: PHOENIX-5333: A tool to
upgrade existing tables/indexes to use self-c…
URL: https://github.com/apache/phoenix/pull/520#discussion_r300483961
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
##########
@@ -1530,8 +1533,8 @@ private void ensureViewIndexTableCreated(byte[]
physicalTableName, Map<String, O
byte[] physicalIndexName =
MetaDataUtil.getViewIndexPhysicalName(physicalTableName);
tableProps.put(MetaDataUtil.IS_VIEW_INDEX_TABLE_PROP_NAME,
TRUE_BYTES_AS_STRING);
- TableDescriptor desc = ensureTableCreated(physicalIndexName,
PTableType.TABLE, tableProps, families, splits,
- false, isNamespaceMapped, false);
+ TableDescriptor desc = ensureTableCreated(physicalIndexName,
PTableType.INDEX, tableProps, families, splits,
+ true, isNamespaceMapped, false);
Review comment:
@kadirozde This is fixing the problem I encountered. The fix makes sense to
me. I ll create another jira for this.
----------------------------------------------------------------
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