Rich-T-kid opened a new pull request, #12340:
URL: https://github.com/apache/arrow-rs/pull/12340

   # Which issue does this PR close?
   
   - Part of #12325.
   
   # Rationale for this change
   
   The Flight integration server sums `RecordBatch` row counts as `usize` and 
then casts the result to `i64` for `FlightInfo.total_records`. Counts above 
`i64::MAX` can wrap during either step.
   
   # What changes are included in this PR?
   
   Convert each batch count to `i64` and use checked addition before 
constructing `FlightInfo`.
   
   # Are these changes tested?
   
   A regression test covers both a single batch above `i64::MAX` and aggregate 
overflow across batches. `NullArray` makes the boundary cases possible without 
allocating the represented rows.
   
   # Are there any significant user-facing changes?
   
   No.


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