Currently the following code works:
pa.array([np.nan, 1.]).cast(pa.int64())
It produces:
<pyarrow.lib.Int64Array object at 0x111ca6778>
[
-9223372036854775808,
1
]
The expected behaviour should be that it raises.
Reporter: Uwe Korn / @xhochy
Assignee: Krisztian Szucs / @kszucs
PRs and other links:
Note: This issue was originally created as ARROW-2854. Please see the migration documentation for further details.