dragosmg commented on PR #13070: URL: https://github.com/apache/arrow/pull/13070#issuecomment-1138334117
I think there is something I'd like to try here. An approach similar to the `case_when()` binding. It might be computationally costly, but it might also work (and won't require relying on `coalesce()`). Short sketch: * build `strptime` Expressions for each `tryFormat` -> this should give us a list of Expressions * force evaluation of each Expression with `arrow_eval` in a mask probably 2-3 caller environments higher -> this should give us a list of values * reduce the list of values to the position of the first NA / first non-NA elements. * compare first NA / non-NA positions and choose the format -- 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]
