Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.17.1, 1.0.0
-
OS: MacOSX Catalina
Python Version: 3.7
Description
Hi,
In parquet, I want to store date values as timestamp format with nanoseconds precision. This works fine with most dates except those past pandas.Timestamp.max: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timestamp.max.html.
I was expecting some exception to be raised (like in Pandas), however this did not happen and the value was processed incorrectly. Note that this is with safe=True. Can this please be looked into? Thanks
Example Code:
pa.array([datetime(2262,4,12)], type=pa.timestamp("ns"))
{{}}
Return:
[
{{ 1677-09-21 00:25:26.290448384}}
]
Attachments
Issue Links
- supercedes
-
ARROW-6779 [Python] Conversion from datetime.datetime to timstamp('ns') can overflow
- Closed
- links to