You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/11/02 14:33:00 UTC

[jira] [Updated] (ARROW-10430) [C++][Python] strptime fails to parse subsecond timestamps

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

Wes McKinney updated ARROW-10430:
---------------------------------
    Summary: [C++][Python] strptime fails to parse subsecond timestamps  (was: strptime fails to parse subsecond timestamps)

> [C++][Python] strptime fails to parse subsecond timestamps
> ----------------------------------------------------------
>
>                 Key: ARROW-10430
>                 URL: https://issues.apache.org/jira/browse/ARROW-10430
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 2.0.0
>            Reporter: Taras Kuzyo
>            Priority: Minor
>
>  
> {code:java}
> >>> import pyarrow.compute as pc
> >>> pc.strptime('13:13:30', format='%H:%M:%S', unit='s')
> <pyarrow.TimestampScalar: datetime.datetime(1899, 12, 31, 13, 13, 30)>
> >>> pc.strptime('13:13:30.255', format='%H:%M:%S.%f', unit='ms')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/local/lib/python3.6/dist-packages/pyarrow/compute.py", line 140, in wrapper
>  return func.call([arg], options, memory_pool)
>  File "pyarrow/_compute.pyx", line 275, in pyarrow._compute.Function.call
>  File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
>  File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
> pyarrow.lib.ArrowInvalid: Failed to parse string 13:13:30.255
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)