klion26 commented on issue #8219: URL: https://github.com/apache/arrow-rs/issues/8219#issuecomment-3265814247
Currently, we use [`TimestampParser`](https://github.com/apache/arrow-rs/blob/0c7cb2ac3f3132216a08fd557f9b1edc7f90060f/arrow-cast/src/parse.rs#L93) which always requires the `second` to exist. This will throw an error for the given input, "2000-01-01T00:00Z". I think we can support this format without a `second`, as it is valid in ISO8601(see [example](https://www.ionos.com/digitalguide/websites/web-development/iso-8601/) here, and [Wikipedia](https://en.wikipedia.org/wiki/ISO_8601)), I can help to fix this if this is valid, what do you think about this @alamb ? I've tried that, the `parse_from_str` from Chorono does not support this format either, but it supports a more generic function `parse`, which takes a parameter with the `StrftimeItems`(e.g., `%Y-%m-%dT%H:%MZ"). -- 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]
