You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/04/23 13:39:00 UTC

[jira] [Created] (ARROW-8568) [C++][Python] Crash on decimal cast in debug mode

Antoine Pitrou created ARROW-8568:
-------------------------------------

             Summary: [C++][Python] Crash on decimal cast in debug mode
                 Key: ARROW-8568
                 URL: https://issues.apache.org/jira/browse/ARROW-8568
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++, Python
    Affects Versions: 0.17.0
            Reporter: Antoine Pitrou


{code:python}
>>> arr = pa.array([Decimal('123.45')])                                                                                                                                   
>>> arr                                                                                                                                                                   
<pyarrow.lib.Decimal128Array object at 0x7efbbddd4210>
[
  123.45
]
>>> arr.type                                                                                                                                                              
Decimal128Type(decimal(5, 2))
>>> arr.cast(pa.decimal128(4, 2))                                                                                                                                         
../src/arrow/util/basic_decimal.cc:626:  Check failed: (original_scale) != (new_scale) 
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)