Rich-T-kid commented on code in PR #9891:
URL: https://github.com/apache/arrow-rs/pull/9891#discussion_r3189169666
##########
arrow-array/src/array/run_array.rs:
##########
@@ -30,6 +30,25 @@ use crate::{
types::{Int16Type, Int32Type, Int64Type, RunEndIndexType},
};
+/// Recursively applies a function to the values of a RunEndEncoded array,
preserving the run structure.
+///
+/// # Example
+///
+/// ```ignore
+/// let result = ree_recurse!(array, Int32Type, my_function)?;
+/// ```
+///
+/// This macro is useful for implementing functions that should work on the
logical values
+/// of a REE array while preserving the run-end encoding structure.
+#[macro_export]
+macro_rules! ree_map {
Review Comment:
I think thats a change thats worth its own 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]