From 122a5f498bf57746d16899b892e8ca239490e162 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Tue, 29 Oct 2024 01:49:06 -0700 Subject: [PATCH] doc: Clarify take kernel semantics (#6632) * doc: Clarify take kernel behavior * fix * Update arrow-select/src/take.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> --------- Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> --- arrow-select/src/take.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arrow-select/src/take.rs b/arrow-select/src/take.rs index 7e17e61e1d32..07630a49fa11 100644 --- a/arrow-select/src/take.rs +++ b/arrow-select/src/take.rs @@ -50,6 +50,10 @@ use num::{One, Zero}; /// /// For selecting values by index from multiple arrays see [`crate::interleave`] /// +/// Note that this kernel, similar to other kernels in this crate, +/// will avoid allocating where not necessary. Consequently +/// the returned array may share buffers with the inputs +/// /// # Errors /// This function errors whenever: /// * An index cannot be casted to `usize` (typically 32 bit architectures)