You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/09/16 20:43:00 UTC
[jira] [Commented] (ARROW-14018) [Python] Interval types are not
bound in Python
[ https://issues.apache.org/jira/browse/ARROW-14018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416323#comment-17416323 ]
Joris Van den Bossche commented on ARROW-14018:
-----------------------------------------------
Somewhat a duplicate of ARROW-13806 (although that issue also talks about python/pandas <-> arrow conversion, but of course a preliminary for that is basic bindings)
> [Python] Interval types are not bound in Python
> -----------------------------------------------
>
> Key: ARROW-14018
> URL: https://issues.apache.org/jira/browse/ARROW-14018
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: David Li
> Priority: Major
>
> Note that compute functions will still get generated, they'll just error when used:
> {noformat}
> >>> pc.month_interval_between(pa.array([1, 2], pa.timestamp('s')), pa.array([3, 4], pa.timestamp('s')))
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/lidavidm/Code/upstream/arrow-13548/python/pyarrow/compute.py", line 181, in wrapper
> return func.call(args, None, memory_pool)
> File "pyarrow/_compute.pyx", line 341, in pyarrow._compute.Function.call
> return wrap_datum(result)
> File "pyarrow/array.pxi", line 557, in pyarrow.lib.wrap_datum
> return pyarrow_wrap_array(MakeArray(datum.array()))
> File "pyarrow/public-api.pxi", line 200, in pyarrow.lib.pyarrow_wrap_array
> klass = get_array_class_from_type(sp_array.get().type())
> File "pyarrow/array.pxi", line 2420, in pyarrow.lib.get_array_class_from_type
> return _array_classes[data_type.id()]
> KeyError: 21 {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)