[GitHub] [carbondata] kumarvishal09 commented on a change in pull request #3182: [CARBONDATA-3343] Compaction for Range Sort

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kumarvishal09 commented on a change in pull request #3182: [CARBONDATA-3343] Compaction for Range Sort

GitBox
kumarvishal09 commented on a change in pull request #3182: [CARBONDATA-3343] Compaction for Range Sort
URL: https://github.com/apache/carbondata/pull/3182#discussion_r277669123
 
 

 ##########
 File path: core/src/main/java/org/apache/carbondata/core/scan/result/BlockletScannedResult.java
 ##########
 @@ -530,6 +530,20 @@ protected void fillValidRowIdsBatchFilling(int rowId, int batchSize) {
     }
   }
 
+  protected void fillValidRowIdsBatchFillingWithFilter(int rowId, int batchSize) {
+    // row id will be different for every batch so clear it before filling
+    clearValidRowIdList();
+    int startPosition = rowId;
+    for (int i = 0, j = startPosition;
+         i < batchSize && j < pageFilteredRowId[pageCounter].length; i++) {
 
 Review comment:
   while this i<batchSize is required, i think caller will handle batchSize will be minimum(batchsize,number of rows in page)...can u please check

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


With regards,
Apache Git Services