You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Todd Farmer (Jira)" <ji...@apache.org> on 2022/07/12 14:05:02 UTC

[jira] [Assigned] (ARROW-16140) [Python] zoneinfo timezones failing during type inference

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

Todd Farmer reassigned ARROW-16140:
-----------------------------------

    Assignee:     (was: Alenka Frim)

This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.

> [Python] zoneinfo timezones failing during type inference
> ---------------------------------------------------------
>
>                 Key: ARROW-16140
>                 URL: https://issues.apache.org/jira/browse/ARROW-16140
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Major
>
> The conversion itself works fine (eg when specifying {{type=pa.timestamp("us", tz="America/New_York")}} in the below example), but inferring the type and timezone from the first value fails if it has a zoneinfo timezone:
> {code}
> In [53]: tz = zoneinfo.ZoneInfo(key='America/New_York')
> In [54]: dt = datetime.datetime(2013, 11, 3, 10, 3, 14, tzinfo = tz)
> In [55]: pa.array([dt])
> ....
> ArrowInvalid: Object returned by tzinfo.utcoffset(None) is not an instance of datetime.timedelta
> {code}
> cc [~alenkaf]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)