[
https://issues.apache.org/jira/browse/ARROW-11631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298281#comment-17298281
]
Ian Cook commented on ARROW-11631:
----------------------------------
[~romainfrancois] do you know if this would be straightforward to implement
with the Converter API? If you could provide some pointers on how to implement
this (or let us know what the obstacles are if it's not so simple) that would
be wonderful!
> [R] Implement RPrimitiveConverter for Decimal type
> --------------------------------------------------
>
> Key: ARROW-11631
> URL: https://issues.apache.org/jira/browse/ARROW-11631
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Affects Versions: 3.0.0
> Reporter: Ian Cook
> Priority: Major
>
> This succeeds:
> {code:java}
> Array$create(1)$cast(decimal(10, 2)){code}
> but this fails:
> {code:java}
> Array$create(1, type = decimal(10, 2)){code}
> with error:
> {code:java}
> NotImplemented: Extend{code}
> because the {{Extend}} method of the {{RPromitiveConverter}} class for the
> Decimal type is not yet implemented.
> The error is thrown here:
> [https://github.com/apache/arrow/blob/7184c3f46981dd52c3c521b2676796e82f17da77/r/src/r_to_arrow.cpp#L601]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)