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

Antoine Pitrou resolved ARROW-15080.
------------------------------------
    Fix Version/s: 8.0.0
       Resolution: Fixed

Issue resolved by pull request 12348
[https://github.com/apache/arrow/pull/12348]

> [Python] Allow creation of month_day_nano interval from tuple
> -------------------------------------------------------------
>
>                 Key: ARROW-15080
>                 URL: https://issues.apache.org/jira/browse/ARROW-15080
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, Python
>            Reporter: Antoine Pitrou
>            Assignee: Micah Kornfield
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 8.0.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> This should ideally be allowed but isn't:
> {code:python}
> >>> a = pa.array([(3, 20, 100)], type=pa.month_day_nano_interval())
> Traceback (most recent call last):
>   File "<ipython-input-5-65b4e8d8ba5c>", line 1, in <module>
>     a = pa.array([(3, 20, 100)], type=pa.month_day_nano_interval())
>   File "pyarrow/array.pxi", line 315, in pyarrow.lib.array
>     return _sequence_to_array(obj, mask, size, type, pool, c_from_pandas)
>   File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
>     chunked = GetResultValue(
>   File "pyarrow/error.pxi", line 143, in 
> pyarrow.lib.pyarrow_internal_check_status
>     return check_status(status)
>   File "pyarrow/error.pxi", line 122, in pyarrow.lib.check_status
>     raise ArrowTypeError(message)
> ArrowTypeError: No temporal attributes found on object.
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to