[
https://issues.apache.org/jira/browse/ARROW-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rok Mihevc updated ARROW-1730:
------------------------------
External issue URL: https://github.com/apache/arrow/issues/17736
> [Python] Incorrect result from pyarrow.array when passing timestamp type
> ------------------------------------------------------------------------
>
> Key: ARROW-1730
> URL: https://issues.apache.org/jira/browse/ARROW-1730
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Wes McKinney
> Assignee: Licht Takeuchi
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.8.0
>
>
> Even with the ARROW-1484 patch, we have:
> {code: language=python}
> In [10]: pa.array([0], type=pa.timestamp('ns'))
> Out[10]:
> <pyarrow.lib.TimestampArray object at 0x7f9145b27098>
> [
> Timestamp('1968-01-12 11:18:14.409378304')
> ]
> In [11]: pa.array([0], type='int64').cast(pa.timestamp('ns'))
> Out[11]:
> <pyarrow.lib.TimestampArray object at 0x7f9145b27d18>
> [
> Timestamp('1970-01-01 00:00:00')
> ]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)