You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2026/06/03 13:50:56 UTC

[PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

alamb opened a new pull request, #10057:
URL: https://github.com/apache/arrow-rs/pull/10057

   Documentation follow-up for #9755.
   
   > [!NOTE]
   > Stacked on top of #9755 (not yet merged), so the diff also shows that PR's feature commit. The contribution here is the single docs commit.
   
   Comments only — no code changes. Documents the `InProgressArray` copy methods and clarifies which operate on the source set via `set_source` versus the one that takes the source directly.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #10057:
URL: https://github.com/apache/arrow-rs/pull/10057#discussion_r3708938039


##########
arrow-select/src/coalesce.rs:
##########
@@ -722,17 +722,25 @@ trait InProgressArray: std::fmt::Debug + Send + Sync {
 
     /// Copy rows from the current source array into the in-progress array
     ///
-    /// The source array is set by [`Self::set_source`].
+    /// Note: The source array is set by [`Self::set_source`].
     ///
     /// Return an error if the source array is not set
     fn copy_rows(&mut self, offset: usize, len: usize) -> Result<(), ArrowError>;
 
     /// Copy rows selected by `filter` from the current source array.
+    ///
+    /// The default implementation calls [`Self::copy_rows_by_selection`]
     fn copy_rows_by_filter(&mut self, filter: &FilterPredicate) -> Result<(), ArrowError> {
         self.copy_rows_by_selection(filter.selection())
     }
 
-    /// Copy rows selected by `filter` from `source`.
+    /// Copy rows selected by a [`FilterPredicate`] from `source`.
+    ///
+    /// Unlike the other copy methods, the source array is passed in directly
+    /// rather than read from the array set by [`Self::set_source`].
+    ///
+    /// The default implementation sets `source` via [`Self::set_source`] and
+    /// then calls [`Self::copy_rows_by_filter`].

Review Comment:
   this bit reads a bit odd, since its both saying "we dont read from set_source" but "by default we'll use set_source"
   
   maybe need to emphasize that not reading from `set_source` allows more flexibility, but the default will still just use `set_source`, to clarify this?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed pull request #10057: docs(arrow-select): document the InProgressArray copy methods
URL: https://github.com/apache/arrow-rs/pull/10057


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #10057:
URL: https://github.com/apache/arrow-rs/pull/10057#discussion_r3721911169


##########
arrow-select/src/coalesce.rs:
##########
@@ -722,17 +722,25 @@ trait InProgressArray: std::fmt::Debug + Send + Sync {
 
     /// Copy rows from the current source array into the in-progress array
     ///
-    /// The source array is set by [`Self::set_source`].
+    /// Note: The source array is set by [`Self::set_source`].
     ///
     /// Return an error if the source array is not set
     fn copy_rows(&mut self, offset: usize, len: usize) -> Result<(), ArrowError>;
 
     /// Copy rows selected by `filter` from the current source array.
+    ///
+    /// The default implementation calls [`Self::copy_rows_by_selection`]
     fn copy_rows_by_filter(&mut self, filter: &FilterPredicate) -> Result<(), ArrowError> {
         self.copy_rows_by_selection(filter.selection())
     }
 
-    /// Copy rows selected by `filter` from `source`.
+    /// Copy rows selected by a [`FilterPredicate`] from `source`.
+    ///
+    /// Unlike the other copy methods, the source array is passed in directly
+    /// rather than read from the array set by [`Self::set_source`].
+    ///
+    /// The default implementation sets `source` via [`Self::set_source`] and
+    /// then calls [`Self::copy_rows_by_filter`].

Review Comment:
   I tried to clarify in bcad2a8122644c99ba4ca6da0a144c1b7dbe18b6



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey merged PR #10057:
URL: https://github.com/apache/arrow-rs/pull/10057


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on PR #10057:
URL: https://github.com/apache/arrow-rs/pull/10057#issuecomment-5198714151

   thanks @alamb 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #10057:
URL: https://github.com/apache/arrow-rs/pull/10057#issuecomment-5169340864

   FYI @ClSlaid  -- do you happen to have a moment to review this PR?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs(arrow-select): document the InProgressArray copy methods [arrow-rs]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #10057:
URL: https://github.com/apache/arrow-rs/pull/10057#issuecomment-5161654997

   Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org