Jefffrey commented on code in PR #11070:
URL: https://github.com/apache/arrow-rs/pull/11070#discussion_r4012012912


##########
arrow-array/src/array/fixed_size_list_array.rs:
##########
@@ -371,9 +371,14 @@ impl FixedSizeListArray {
     /// Returns the offset for value at index `i`.
     ///
     /// Note this doesn't do any bound checking, for performance reason.
+    ///
+    /// # Panics
+    ///
+    /// Panics if the offset exceeds `i32::MAX`.
+    #[deprecated(since = "60.1.0", note = "Use i * value_length() as usize 
instead")]

Review Comment:
   ```suggestion
       #[deprecated(since = "60.0.0", note = "Use i * value_length() as usize 
instead")]
   ```



##########
arrow-array/src/array/fixed_size_list_array.rs:
##########
@@ -371,9 +371,14 @@ impl FixedSizeListArray {
     /// Returns the offset for value at index `i`.
     ///
     /// Note this doesn't do any bound checking, for performance reason.
+    ///
+    /// # Panics
+    ///
+    /// Panics if the offset exceeds `i32::MAX`.
+    #[deprecated(since = "60.1.0", note = "Use i * value_length() as usize 
instead")]

Review Comment:
   we could also make `value_offset_at` public and point to that, but 
considering its just a thin wrapper over the multiplication and we don't use 
`value_offset` much in the codebase, its probably fine to leave it private to 
not expand our API surface 👍 



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