You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "lukemanley (via GitHub)" <gi...@apache.org> on 2023/04/15 22:46:21 UTC
[GitHub] [arrow] lukemanley commented on issue #35088: [Python] pyarrow.compute.subtract_checked overflowing for some duration arrays constructed from numpy
lukemanley commented on issue #35088:
URL: https://github.com/apache/arrow/issues/35088#issuecomment-1509992225
Thanks for the explanation. It looks like numpy uses that value (min int64) for NaT:
```
In [1]: import numpy as np
In [2]: np.datetime64("NaT").astype(int)
Out[2]: -9223372036854775808
In [3]: np.array([-9223372036854775808], dtype="m8[ns]")
Out[3]: array(['NaT'], dtype='timedelta64[ns]')
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org