Dandandan commented on PR #6691:
URL: https://github.com/apache/arrow-rs/pull/6691#issuecomment-2466305290

   ```
   for _ in start..end {
       if let Some(pred) = preds.next() {
           count += R::Native::from(pred);
           keep |= pred
       }
   }
   ```
   
   Maybe you could try something like (two minor changes)?
   
   ```
       for pred in preds.take(end-start) {
           count += R::Native::from(pred);
       }
       let keep = count > 0;
   }
   ```


-- 
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.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to