Github user xubo245 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2318#discussion_r189827847
--- Diff:
core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java
---
@@ -267,6 +267,8 @@ public TableDataMap getDataMap(CarbonTable table,
DataMapSchema dataMapSchema) {
}
}
}
+ } else {
+ dataMap.clear();
--- End diff --
I move it into carbonReader close method---
