Jefffrey commented on PR #3101:
URL: https://github.com/apache/arrow-rs/pull/3101#issuecomment-1315045458

   A behaviour I've changed which is worth noting is that it is valid to pass 
in fractions of a second, even if the type you're parsing for doesn't support 
that precision; it'll simply be truncated from the final representation.
   
   See:
   
   ```rust
   assert_eq!(Time32SecondType::parse("02:10:01.1"), Some(7_801));
   ```
   
   This technically was already happening for milli/micro/nano seconds anyway, 
but has been extended to seconds as well, to centralize all the behaviour. Let 
me know any thoughts on if instead it should be stricter and fail the parsing, 
rather than passing and truncating.


-- 
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