[
https://issues.apache.org/jira/browse/ARROW-8568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney resolved ARROW-8568.
---------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
Issue resolved by pull request 7178
[https://github.com/apache/arrow/pull/7178]
> [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
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> {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)