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_r406576369
 
 

 ##########
 File path: 
core/src/main/java/org/apache/carbondata/core/index/IndexStoreManager.java
 ##########
 @@ -820,8 +715,11 @@ public synchronized void clearInvalidIndex(CarbonTable 
carbonTable, List<String>
   }
 
   private boolean hasCGIndex(CarbonTable carbonTable) throws IOException {
-    for (TableIndex tableIndex : getAllVisibleIndexes(carbonTable)) {
-      if 
(tableIndex.getIndexFactory().getDataMapLevel().equals(IndexLevel.CG)) {
+    if (null == carbonTable) {
 
 Review comment:
   It will be null in case of file format flow

----------------------------------------------------------------
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

Reply via email to