stuartcarnie commented on code in PR #2284:
URL: https://github.com/apache/arrow-rs/pull/2284#discussion_r936129423
##########
arrow/src/compute/kernels/cast.rs:
##########
@@ -1661,25 +1620,19 @@ fn cast_string_to_time32second<Offset: OffsetSizeTrait>(
// The iterator is trustedLen because it comes from an
`StringArray`.
unsafe { Time32SecondArray::from_trusted_len_iter(iter) }
} else {
- let vec = (0..string_array.len())
- .map(|i| {
- if string_array.is_null(i) {
- Ok(None)
- } else {
- let string = string_array
- .value(i);
- chrono::Duration::days(3);
Review Comment:
Gosh, I thought that was removed from my branch, but there were multiple
instances. Sorry about that!
--
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]