[
https://issues.apache.org/jira/browse/ARROW-15665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17492773#comment-17492773
]
Joris Van den Bossche commented on ARROW-15665:
-----------------------------------------------
An option to have it return Null (for the failing string(s)) instead of raising
an error sounds good!
I am not sure about an "ignore" option. I know that pandas has it, but I find
it a bit a strange option especially in context of an arrow kernel. In that
case, it doesn't return a timestamp typed array, but the original string array
(so which means that the kernel has no predictable output type).
Such logic to "try the conversion and if it errors keep the original array"
could also be handled on a higher level than the C++ kernel?
> [C++] Add error handling option to StrptimeOptions
> --------------------------------------------------
>
> Key: ARROW-15665
> URL: https://issues.apache.org/jira/browse/ARROW-15665
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Rok Mihevc
> Assignee: Rok Mihevc
> Priority: Major
> Labels: kernel
>
> We want to have an option to either raise, ignore or return NA in case of
> format mismatch.
> See
> [pandas.to_datetime|https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html]
> and lubridate
> [parse_date_time|https://lubridate.tidyverse.org/reference/parse_date_time.html]
> for examples.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)