dragosmg commented on PR #13070:
URL: https://github.com/apache/arrow/pull/13070#issuecomment-1124764857

   > Since we have the option to either emit an `NA` or error on parsing fail, 
could we capture this behavior?
   
   We could, but _if_ we use `coalesce()` (not saying we should, but it's the 
best I was able to come up with), then we'd need to build the iteration 
something like:
   ```r
   coalesce(
   build_expr("strptime", ..., error_is_null = TRUE)
   ...
   build_expr("strptime", ..., error_is_null = FALSE)
   )
   ```
   
   Because we'd still try the various formats and we want to error or return NA 
only if all of them fail to parse.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to