Jefffrey commented on issue #4555: URL: https://github.com/apache/arrow-rs/issues/4555#issuecomment-5119523762
some pointers need to modify `can_cast_types()` to allow this cast of stirng -> duration: https://github.com/apache/arrow-rs/blob/005a2fd43f1b243ed43f4cfa356ebe8f0757939b/arrow-cast/src/cast/mod.rs#L112-L125 then implement the cast arms in the main cast function: https://github.com/apache/arrow-rs/blob/005a2fd43f1b243ed43f4cfa356ebe8f0757939b/arrow-cast/src/cast/mod.rs#L760-L782 see how we have functions for casting string to interval as reference: https://github.com/apache/arrow-rs/blob/005a2fd43f1b243ed43f4cfa356ebe8f0757939b/arrow-cast/src/cast/string.rs#L207-L237 and add tests down here: https://github.com/apache/arrow-rs/blob/005a2fd43f1b243ed43f4cfa356ebe8f0757939b/arrow-cast/src/cast/mod.rs#L2851-L2858 -- 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]
