[
https://issues.apache.org/jira/browse/ARROW-2567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rok Mihevc updated ARROW-2567:
------------------------------
External issue URL: https://github.com/apache/arrow/issues/18926
> [C++/Python] Unit is ignored on comparison of TimestampArrays
> -------------------------------------------------------------
>
> Key: ARROW-2567
> URL: https://issues.apache.org/jira/browse/ARROW-2567
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++, Python
> Affects Versions: 0.9.0
> Reporter: Uwe Korn
> Assignee: Uwe Korn
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Just ran into this:
> {code:java}
> ipdb> p py_array
> <pyarrow.lib.TimestampArray object at 0x13bcc5278>
> [
> Timestamp('1970-01-01 00:00:00'),
> Timestamp('1970-01-01 00:00:00.000000001'),
> Timestamp('1970-01-01 00:00:00.000000002'),
> Timestamp('1970-01-01 00:00:00.000000003'),
> ipdb> p jvm_array
> <pyarrow.lib.TimestampArray object at 0x13bcc52c8>
> [
> Timestamp('1970-01-01 00:00:00'),
> Timestamp('1970-01-01 00:00:01'),
> Timestamp('1970-01-01 00:00:02'),
> Timestamp('1970-01-01 00:00:03'),
> ipdb> py_array.equals(jvm_array)
> True{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)