Rich-T-kid commented on code in PR #11174:
URL: https://github.com/apache/arrow-rs/pull/11174#discussion_r4326192187


##########
arrow-select/src/coalesce.rs:
##########
@@ -809,6 +930,26 @@ trait InProgressArray: std::fmt::Debug + Send + Sync {
         }
     }
 
+    /// Copy rows at `indices` from `source` into the in-progress array.
+    /// `indices` must already be bounds-checked against `source`.
+    fn copy_rows_by_indices(
+        &mut self,
+        source: &ArrayRef,
+        indices: &[u32],

Review Comment:
   >Could we add a debug_assert! next to each SAFETY comment that relies on 
caller validation? 
   
   yes, adding this. also adding two test that error out on this case 
(`primitive`/`utf8View`). commit 
https://github.com/apache/arrow-rs/pull/11174/changes/44bbfcfdf9d918f4baca173a47ad4b7c7e383ff7
 ;
   
   
   



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