-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
In some situations, you want to cast the data in a PrimitiveArray to a different (but similar) data type, e.g. from uint32_t to int32_t or uint32_t to uint8_t. This can either be done by reinterpreting the data or needs to involve a copy if the size of the underlying type changes. There is already an implementation for this in parquet-cpp that could be pulled out into Arrow: https://github.com/apache/parquet-cpp/blob/9a0407e684c0a6299d0e6ab98c11c1162915c0ee/src/parquet/arrow/writer.cc#L71
Reporter: Uwe Korn / @xhochy
Assignee: Wes McKinney / @wesm
Related issues:
- [C++] Type casting function kernel suite (Is contained by)
- [C++] Expose type casts as generic callable object that can write into pre-allocated memory (is related to)
- [Python] pyarrow.Array.from_pandas should take a type parameter (is depended upon by)
Note: This issue was originally created as ARROW-229. Please see the migration documentation for further details.