YichiZhang0613 opened a new issue, #5527:
URL: https://github.com/apache/arrow-rs/issues/5527

   In arrow-rs-master/arrow-array/src/record_batch.rs, what the documentation 
mentions is column length while  assert!((offset + length) <= self.num_rows()) 
checks the number of rows.
   ```rust
       /// # Panics
       ///
       /// Panics if `offset` with `length` is greater than column length.
       pub fn slice(&self, offset: usize, length: usize) -> RecordBatch {
           assert!((offset + length) <= self.num_rows());
   ```


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