[
https://issues.apache.org/jira/browse/ARROW-15316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Keane updated ARROW-15316:
-----------------------------------
Fix Version/s: 8.0.0
(was: 7.0.0)
> [R] Make a one-function pointer function
> ----------------------------------------
>
> Key: ARROW-15316
> URL: https://issues.apache.org/jira/browse/ARROW-15316
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Jonathan Keane
> Assignee: Dragoș Moldovan-Grünfeld
> Priority: Major
> Labels: pull-request-available
> Fix For: 8.0.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> In ARROW-15173 [PR|https://github.com/apache/arrow/pull/12062/files] we added
> backwards compatibly to pointers between R and Python where we use
> `external_pointer_addr_double()` with old python versions. We could take a
> number of the blocks like:
> {code}
> if (pyarrow_version() >= pyarrow_version_pointers_changed) {
> x$`_export_to_c`(schema_ptr)
> } else {
> x$`_export_to_c`(external_pointer_addr_double(schema_ptr))
> }
> {code}
> to
> {code}
> x$`_export_to_c`(backwards_compatible_pointer(schema_ptr))
> {code}
> with {{backwards_compatible_pointer}} including the if/else
--
This message was sent by Atlassian Jira
(v8.20.1#820001)