alamb commented on issue #5182:
URL: https://github.com/apache/arrow-rs/issues/5182#issuecomment-1846196659

   > @alamb the previous behavior for `cast` was that when it returned `null` 
for the elements that it was unable to parse. this way if we pass it a good 
timestamp and a bad one, it will returned the parsed timestamp for good one and 
`null` for the bad one.
   > 
   > In the test case you provided, you are expecting an error result. is that 
the behavior we want to change to? if yes what would happen to the case when we 
pass a good and a bad element to `cast`? again return error result?
   
   Sorry, you are correct. I expect an error when 
[`CastOptions::safe`](https://docs.rs/arrow/latest/arrow/compute/struct.CastOptions.html#)
 is false. My test case should have called `cast_with_options`
   
   
   


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