Github user ajantha-bhat commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2299#discussion_r188625173
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java 
---
    @@ -297,7 +297,7 @@ public TableDataMap registerDataMap(CarbonTable table,
             dataMapSchema, dataMapFactory, blockletDetailsFetcher, 
segmentPropertiesFetcher);
     
         tableIndices.add(dataMap);
    -    allDataMaps.put(tableUniqueName, tableIndices);
    +    allDataMaps.put(tableUniqueName.toLowerCase(), tableIndices);
    --- End diff --
    
    I found the actual bug, for external table, during table creation itself 
table name and db name was not converted to lowercase, because of this if table 
name is not in lowercase, when drop table, blocklet datamap was not getting 
cleared. 


---

Reply via email to