[ 
https://issues.apache.org/jira/browse/ARROW-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wes McKinney resolved ARROW-1738.
---------------------------------
    Resolution: Fixed

Resolved by PR 
https://github.com/apache/arrow/commit/59030fe1d319d36157554fb7880e9b574c60a3d1

> [Python] Wrong datetime conversion when pa.array with unit
> ----------------------------------------------------------
>
>                 Key: ARROW-1738
>                 URL: https://issues.apache.org/jira/browse/ARROW-1738
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.7.1
>            Reporter: Licht Takeuchi
>            Assignee: Licht Takeuchi
>             Fix For: 0.8.0
>
>
> {code:java}
> import pyarrow as pa
> import datetime
> pa.array([datetime.datetime.now()], type=pa.timestamp('s')) # OverflowError 
> pa.array([datetime.datetime.now()], type=pa.timestamp('ms')) # OverflowError 
> pa.array([datetime.datetime.now()], type=pa.timestamp('us')) # correct 
> pa.array([datetime.datetime.now()], type=pa.timestamp('ns')) # 1970-01-18 
> 11:11:02.181293587
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to