Indhumathi27 commented on a change in pull request #3688: [CARBONDATA-3765] Refactor Index Metadata for CG and FG Indexes URL: https://github.com/apache/carbondata/pull/3688#discussion_r406576086
########## File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/index/CarbonRefreshIndexCommand.scala ########## @@ -71,30 +80,81 @@ case class CarbonRefreshIndexCommand( private def refreshIndex( sparkSession: SparkSession, parentTable: CarbonTable, - indexOp: Optional[DataMapSchema]): Unit = { - val schema = indexOp.get + indexMetaData: IndexMetadata): Unit = { + var indexInfo: util.Map[String, String] = new util.HashMap[String, String]() + val allIndexesIterator = indexMetaData.getIndexesMap.entrySet().iterator() + breakable { + while (allIndexesIterator.hasNext) { + val currentIndex = allIndexesIterator.next() + if (!currentIndex.getKey.equalsIgnoreCase(CarbonIndexProvider.SI.getIndexProviderName)) { + val indexIterator = currentIndex.getValue.entrySet().iterator() + while (indexIterator.hasNext) { + val indexEntry = indexIterator.next() + if (indexEntry.getKey.equalsIgnoreCase(indexName)) { 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: us...@infra.apache.org With regards, Apache Git Services