[
https://issues.apache.org/jira/browse/ARROW-15080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-15080:
-----------------------------------
Labels: pull-request-available (was: )
> [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
> Time Spent: 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)