Skip to content

[R] Add ability to opt-out of int64 -> int demotion #26108

@asfimport

Description

@asfimport

Currently, if arrow detects that every value in an int64 column can fit in a 32bit int, it will downcast the column an set the type to integer instead of integer64.  Not having a mechanism to disable this optimization makes it tricky if you have many parallel processes (think HPC use case) performing the same calculation but potentially outputting different result values, some being >2^32 and others not.  When you go to collect the resulting feather files from the parallel processes, the types across the files may not line up.

Feature request is to provide an option to disable this demotion and maintain the source column type.

Reporter: Kyle Kavanagh / @kdkavanagh
Assignee: Romain Francois / @romainfrancois

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-10093. Please see the migration documentation for further details.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions