[
https://issues.apache.org/jira/browse/ARROW-10430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joris Van den Bossche closed ARROW-10430.
-----------------------------------------
Resolution: Duplicate
> [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.20.10#820010)