boustrophedon commented on issue #5714: URL: https://github.com/apache/arrow-rs/issues/5714#issuecomment-2094336227
That works with SchemaRef (thanks!) but not ArrayRef, because ArrayRef is `Arc<dyn Array>`. Here's [an example in the playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=233dffb4f08c790db1d6d110290c7e13) but you get the same error with the actual types: ``` error[E0277]: the trait bound `Arc<dyn Array>: From<PrimitiveArray<Int32Type>>` is not satisfied --> src/main.rs:33:54 | 33 | Int32Array::from_iter_values(0..256).into(), | ^^^^ the trait `From<PrimitiveArray<Int32Type>>` is not implemented for `Arc<dyn Array>`, which is required by `PrimitiveArray<Int32Type>: Into<_>` ``` I believe this is because Arc's generic `From<T>` is, well, only implemented for `T` and not `dyn T` Would it be okay if I made a PR on PrimitiveArray to give it an arc or to_arc method? -- 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]
