Skip to content
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

Add PrimitiveArray::reinterpret_cast #2785

Closed
tustvold opened this issue Sep 27, 2022 · 0 comments · Fixed by #2786
Closed

Add PrimitiveArray::reinterpret_cast #2785

tustvold opened this issue Sep 27, 2022 · 0 comments · Fixed by #2786
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog

Comments

@tustvold
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Many readers such as parquet, JSON, and IPC need the ability to promote types from their raw representation (e.g. Int64), to their semantic representation (e.g. TimestampNanosecondArray). Currently these make use of the generic cast kernels, however, these support significantly more complex forms of casting, and consequently have non-trivial dependencies,

Describe the solution you'd like

I would like a PrimitiveArray::reinterpret_cast method that can perform this operation

Describe alternatives you've considered

Additional context

@tustvold tustvold added the enhancement Any new improvement worthy of a entry in the changelog label Sep 27, 2022
tustvold added a commit to tustvold/arrow-rs that referenced this issue Sep 27, 2022
@tustvold tustvold added the arrow Changes to the arrow crate label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant