[
https://issues.apache.org/jira/browse/ARROW-2567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659593#comment-17659593
]
Rok Mihevc commented on ARROW-2567:
-----------------------------------
This issue has been migrated to [issue
#18926|https://github.com/apache/arrow/issues/18926] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [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)