AntoinePrv commented on code in PR #50217:
URL: https://github.com/apache/arrow/pull/50217#discussion_r3442304499


##########
cpp/src/arrow/util/rle_encoding_internal.h:
##########
@@ -780,6 +791,10 @@ auto RleBitPackedDecoder<T>::GetBatch(value_type* out,
                                       rle_size_t batch_size) -> rle_size_t {
   using ControlFlow = RleBitPackedParser::ControlFlow;
 
+  if (ARROW_PREDICT_FALSE(batch_size == 0 || exhausted())) {

Review Comment:
   Came from the Copilot review, which I found to be relevant. I may not be a 
possible path in practice in all of Arrow, but better safe than sorry.



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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to