You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Florian Jetter (JIRA)" <ji...@apache.org> on 2018/07/16 15:46:00 UTC
[jira] [Created] (ARROW-2856) [Python/C++] Array constructor should
not truncate floats when casting to int
Florian Jetter created ARROW-2856:
-------------------------------------
Summary: [Python/C++] Array constructor should not truncate floats when casting to int
Key: ARROW-2856
URL: https://issues.apache.org/jira/browse/ARROW-2856
Project: Apache Arrow
Issue Type: Bug
Components: Python
Affects Versions: 0.9.0
Reporter: Florian Jetter
I would expect the following code to raise instead of truncating the float
{code}
In [4]: pa.array([1.9], type=pa.int8())
Out[4]:
<pyarrow.lib.Int8Array object at 0x113455e58>
[
1
]
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)