VenuReddy2103 commented on a change in pull request #4110:
URL: https://github.com/apache/carbondata/pull/4110#discussion_r609294215
##########
File path:
core/src/main/java/org/apache/carbondata/core/metadata/schema/indextable/IndexTableInfo.java
##########
@@ -157,15 +157,19 @@ public static String updateIndexColumns(String
oldGsonData, String columnToBeUpd
return toGson(indexTableInfos);
}
- public static String enableIndex(String oldIndexIno, String indexName) {
- IndexTableInfo[] indexTableInfos = fromGson(oldIndexIno);
+ public static void setIndexStatus(IndexTableInfo[] indexTableInfos, String
indexName,
+ IndexStatus status) {
for (IndexTableInfo indexTableInfo : indexTableInfos) {
if (indexTableInfo.tableName.equalsIgnoreCase(indexName)) {
- Map<String, String> oldIndexProperties =
indexTableInfo.indexProperties;
- oldIndexProperties.put(CarbonCommonConstants.INDEX_STATUS,
IndexStatus.ENABLED.name());
- indexTableInfo.setIndexProperties(oldIndexProperties);
+ Map<String, String> indexProperties = indexTableInfo.indexProperties;
+ indexProperties.put(CarbonCommonConstants.INDEX_STATUS, status.name());
Review comment:
done
--
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]