Github user xubo245 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2290#discussion_r187878047
--- Diff:
datamap/lucene/src/main/java/org/apache/carbondata/datamap/lucene/LuceneDataMapFactoryBase.java
---
@@ -168,7 +169,8 @@ public DataMapBuilder createBuilder(Segment segment,
String shardName) {
getAllIndexDirs(tableIdentifier.getTablePath(),
segment.getSegmentNo());
for (CarbonFile indexDir : indexDirs) {
// Filter out the tasks which are filtered through CG datamap.
- if
(!segment.getFilteredIndexShardNames().contains(indexDir.getName())) {
+ if (getDataMapLevel() != DataMapLevel.FG &&
--- End diff --
The design of continue is for CG. FG can't skip it by the continue,
otherwise it will led to error later.
---