-
Notifications
You must be signed in to change notification settings - Fork 749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Into<Arc<dyn Array>>
for ArrayData
#6104
Comments
Seems like a nice improvement to me. |
There is a |
Perfect, |
I think it would be worthwhile as it would make it more discoverable -- could you make a PR @ParkMyCar ? |
I could be mistaken, but I believe the orphan rules may prevent you from doing so |
Yeah I'll whip this up! Hopefully orphan rules don't prevent it :) |
Darn, yeah orphan rules and crate layout currently prevent it.
|
Thanks for trying 🙏 |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
At a serialization layer I want to go from
ArrayData
to anArc<dyn Array>
and some logic higher up will downcast theArc<dyn Array>
into a specific type.Describe the solution you'd like
Concrete array types, e.g.
UInt32Array
, implementFrom<ArrayData>
. ImplementingInto<Arc<dyn Array>> for ArrayData
seems like it would be symmetrical.Describe alternatives you've considered
The
Array
trait implementsto_data(&self) -> ArrayData
, maybeArrayData
could implementto_array(&self) -> Arc<dyn Array>
Additional context
Apologies if this is already possible, I couldn't find it in the docs
The text was updated successfully, but these errors were encountered: