You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/06/14 07:58:00 UTC

[jira] [Updated] (ARROW-14518) [Ruby] ArrayBuilder doesn't work correctly with Decimal

     [ https://issues.apache.org/jira/browse/ARROW-14518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated ARROW-14518:
-----------------------------------
    Labels: pull-request-available  (was: )

> [Ruby] ArrayBuilder doesn't work correctly with Decimal
> -------------------------------------------------------
>
>                 Key: ARROW-14518
>                 URL: https://issues.apache.org/jira/browse/ARROW-14518
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Ruby
>            Reporter: Kanstantsin Ilchanka
>            Assignee: Kouhei Sutou
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When trying to convert raw data with decimal values to Arrow::Table error received
>  
> {code:java}
> Arrow::Table.new(x: [BigDecimal('1.1')])
> ArgumentError: wrong arguments: Arrow::Decimal128ArrayBuilder#initialize(): available signatures: (data_type: interface(Arrow::Decimal128DataType(GArrowDecimal128DataType)))
> {code}
> I guess this is because Decimal128ArrayBuilder expects Decimal128DataType in initialiser, however I'm not sure how to correctly and effectively detect precision and scale from array of BigDecimal
>  
> {code:java}
> Arrow::VERSION
> => "5.0.0"{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)