Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
While `Arrow$create()` respects the types provided by the `type` argument, they are ignored when using `as_arrow_array()`. Compare the output below:
library(arrow, warn.conflicts = FALSE) dataset <- data.frame( a = 1, b = 2, c = 3 ) types <- struct(a = int16(), b = int32(), c = int64()) as_arrow_array( dataset, type = types )$type #> StructType #> struct<a: double, b: double, c: double> Array$create( dataset, type = types )$type #> StructType #> struct<a: int16, b: int32, c: int64>
I have identified the bug and will submit a PR.
Attachments
Issue Links
- links to