[ 
https://issues.apache.org/jira/browse/ARROW-2854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616515#comment-16616515
 ] 

Wes McKinney commented on ARROW-2854:
-------------------------------------

Should we push this off or try to tackle for 0.11?

> [C++/Python] Casting float NaN to int should raise an error on safe cast
> ------------------------------------------------------------------------
>
>                 Key: ARROW-2854
>                 URL: https://issues.apache.org/jira/browse/ARROW-2854
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 0.9.0
>            Reporter: Uwe L. Korn
>            Priority: Major
>             Fix For: 0.11.0
>
>
> Currently the following code works:
> {code}
> pa.array([np.nan, 1.]).cast(pa.int64())
> {code}
> It produces:
> {code}
> <pyarrow.lib.Int64Array object at 0x111ca6778>
> [
>   -9223372036854775808,
>   1
> ]
> {code}
> The expected behaviour should be that it raises.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to