[GitHub] carbondata pull request #2708: [CARBONDATA-2886] Select Filter Compatibility...

2018-09-17 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/carbondata/pull/2708


---


[GitHub] carbondata pull request #2708: [CARBONDATA-2886] Select Filter Compatibility...

2018-09-12 Thread manishnalla1994
Github user manishnalla1994 commented on a diff in the pull request:

https://github.com/apache/carbondata/pull/2708#discussion_r216908025
  
--- Diff: 
core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java
 ---
@@ -383,8 +383,9 @@ private void 
fillBlockletInfoToTableBlock(List tableBlockInfos,
   blockletInfo.getBlockletIndex().getMinMaxIndex().getMaxValues());
   // update min and max values in case of old store for measures as 
min and max is written
   // opposite for measures in old store ( store <= 1.1 version)
+  byte[][] tempMaxValues = maxValues;
   maxValues = CarbonUtil.updateMinMaxValues(fileFooter, maxValues, 
minValues, false);
-  minValues = CarbonUtil.updateMinMaxValues(fileFooter, maxValues, 
minValues, true);
+  minValues = CarbonUtil.updateMinMaxValues(fileFooter, tempMaxValues, 
minValues, true);
--- End diff --

The maxValues are changed in line 386 and we need the old values of 
maxValues to compute the correct minValues. So stored it in a temporary 
variable first.


---


[GitHub] carbondata pull request #2708: [CARBONDATA-2886] Select Filter Compatibility...

2018-09-12 Thread xuchuanyin
Github user xuchuanyin commented on a diff in the pull request:

https://github.com/apache/carbondata/pull/2708#discussion_r216889572
  
--- Diff: 
core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java
 ---
@@ -383,8 +383,9 @@ private void 
fillBlockletInfoToTableBlock(List tableBlockInfos,
   blockletInfo.getBlockletIndex().getMinMaxIndex().getMaxValues());
   // update min and max values in case of old store for measures as 
min and max is written
   // opposite for measures in old store ( store <= 1.1 version)
+  byte[][] tempMaxValues = maxValues;
   maxValues = CarbonUtil.updateMinMaxValues(fileFooter, maxValues, 
minValues, false);
-  minValues = CarbonUtil.updateMinMaxValues(fileFooter, maxValues, 
minValues, true);
+  minValues = CarbonUtil.updateMinMaxValues(fileFooter, tempMaxValues, 
minValues, true);
--- End diff --

Is there any difference?


---