You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "bboissin (via GitHub)" <gi...@apache.org> on 2026/04/29 19:13:43 UTC
[I] [arrow-cast] incorrect Time32 -> Time64 conversion [arrow-rs]
bboissin opened a new issue, #9851:
URL: https://github.com/apache/arrow-rs/issues/9851
**Describe the bug**
Converting from Time32(Milli) to Time64(Nano) zeroes out values instead of converting.
**To Reproduce**
```
#[test]
fn test_cast_time32_millisecond_to_time64_nanosecond() {
let array =
Time32MillisecondArray::from(vec![Some(1_000), Some(2_000), None, Some(43_200_000)]);
let b = cast(&array, &DataType::Time64(TimeUnit::Nanosecond)).unwrap();
let c = b.as_primitive::<Time64NanosecondType>();
assert_eq!(c.value(0), 1_000_000_000);
assert_eq!(c.value(1), 2_000_000_000);
assert!(c.is_null(2));
assert_eq!(c.value(3), 43_200_000_000_000);
}
```
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [arrow-cast] incorrect Time32 -> Time64 conversion [arrow-rs]
Posted by "bboissin (via GitHub)" <gi...@apache.org>.
bboissin commented on issue #9851:
URL: https://github.com/apache/arrow-rs/issues/9851#issuecomment-4346786545
take
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [arrow-cast] incorrect Time32 -> Time64 conversion [arrow-rs]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey closed issue #9851: [arrow-cast] incorrect Time32 -> Time64 conversion
URL: https://github.com/apache/arrow-rs/issues/9851
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [arrow-cast] incorrect Time32 -> Time64 conversion [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #9851:
URL: https://github.com/apache/arrow-rs/issues/9851#issuecomment-4397404271
`label_issue.py` automatically added labels {'arrow'} from #9852
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org