Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2463#discussion_r201590946
  
    --- Diff: 
datamap/lucene/src/main/java/org/apache/carbondata/datamap/lucene/LuceneDataMapFactoryBase.java
 ---
    @@ -270,6 +260,22 @@ public void clear() {
     
       }
     
    +  @Override public void deleteDatamapData(Segment segment) {
    +    try {
    +      String segmentId = segment.getSegmentNo();
    +      String datamapPath = CarbonTablePath
    +          .getDataMapStorePath(tableIdentifier.getTablePath(), segmentId, 
dataMapName);
    +      if (FileFactory.isFileExist(datamapPath)) {
    +        CarbonFile file = FileFactory.getCarbonFile(datamapPath,
    +            FileFactory.getFileType(datamapPath));
    +        CarbonUtil.deleteFoldersAndFilesSilent(file);
    +      }
    +    } catch (IOException | InterruptedException ex) {
    +      throw new RuntimeException(
    --- End diff --
    
    please do the same for line 279


---

Reply via email to