Indhumathi27 commented on a change in pull request #3584: [CARBONDATA-3718] 
Support SegmentLevel MinMax for better Pruning and less driver memory usage for 
cache
URL: https://github.com/apache/carbondata/pull/3584#discussion_r393444014
 
 

 ##########
 File path: 
core/src/main/java/org/apache/carbondata/core/datamap/TableDataMap.java
 ##########
 @@ -135,7 +136,7 @@ public CarbonTable getTable() {
     int datamapsCount = 0;
     // In case if filter has matched partitions, then update the segments with 
datamap's
     // segment list, as getDataMaps will return segments that matches the 
partition.
-    if (null != partitions && !partitions.isEmpty()) {
+    if (isFilterPresent) {
 
 Review comment:
   Now, we are loading cache for only the matched segments for filter 
(partition/non-partition). For non-partition table, based on segment level 
min-max. Hence we have to reset the segments.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to