Phoenix500526 commented on code in PR #12354:
URL: https://github.com/apache/arrow-rs/pull/12354#discussion_r4675262057


##########
arrow-data/src/transform/run.rs:
##########
@@ -255,12 +255,17 @@ mod tests {
     use crate::{ArrayData, ArrayDataBuilder};
     use arrow_buffer::Buffer;
     use arrow_schema::{DataType, Field};
+    use rstest::rstest;
     use std::sync::Arc;
 
-    fn create_run_array_data(run_ends: Vec<i32>, values: ArrayData) -> 
ArrayData {
+    fn create_run_array_data<T: ArrowNativeType>(

Review Comment:
   Removed. I noticed the dependency cycle when making the change, but 
initially proceeded because arrow-array depends on arrow-data normally, while 
the reverse dependency is dev-only. Cargo can build arrow-data, then 
arrow-array, and finally the arrow-data tests, so there is no cycle between the 
build artifacts. But, the [Cargo 
documentation](https://doc.rust-lang.org/cargo/reference/resolver.html#dev-dependency-cycles)
 recommends avoiding these cycles where possible. I agree that introducing one 
just for this test helper isn't worthwhile, so I've removed the dev-dependency 
and restored the native integer generic with an explicit DataType parameter.



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