You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Jacek Pliszka (Jira)" <ji...@apache.org> on 2020/04/05 19:58:00 UTC
[jira] [Comment Edited] (ARROW-3329) [Python] Error casting
decimal(38, 4) to int64
[ https://issues.apache.org/jira/browse/ARROW-3329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17075915#comment-17075915 ]
Jacek Pliszka edited comment on ARROW-3329 at 4/5/20, 7:57 PM:
---------------------------------------------------------------
Added python tests to my branch - waiting for tests to finish - when they are OK I will raise pull request.
[https://github.com/JacekPliszka/arrow/tree/ARROW-3329]
However there are 3 issues left that I would like to postpone for later:
* python cast does not distinguish between truncation and overflow
* no overflow implemented for decimal to decimal cast
* cast while constructing is still failing
But overall I believe it works fine so I am for including it in 0.17.0 and fixing above later.
was (Author: jacek.pliszka):
Added some corrections to my branch - waiting for tests to finish - when they are OK I will raise pull request.
https://github.com/JacekPliszka/arrow/tree/ARROW-3329
> [Python] Error casting decimal(38, 4) to int64
> ----------------------------------------------
>
> Key: ARROW-3329
> URL: https://issues.apache.org/jira/browse/ARROW-3329
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Environment: Python version : 3.6.5
> Pyarrow version : 0.10.0
> Reporter: Kavita Sheth
> Assignee: Jacek Pliszka
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 7h 20m
> Remaining Estimate: 0h
>
> Git issue LInk : https://github.com/apache/arrow/issues/2627
> I want to cast pyarrow table column from decimal(38,4) to int64.
> col.cast(pa.int64())
> Error:
> File "pyarrow/table.pxi", line 443, in pyarrow.lib.Column.cast
> File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status
> pyarrow.lib.ArrowNotImplementedError: No cast implemented from decimal(38, 4) to int64
> Python version : 3.6.5
> Pyarrow version : 0.10.0
> is it not implemented yet or I am not using it correctly? If not implemented yet, then any work around to cast columns?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)