You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to apache/datafusion#4644
Postgresql and datafusion support to cast date32 to timestamp, however its not yet covered by arrow-rs
To Reproduce
#[test]
fn test_cast_date32_to_timestamp() {
let a = Date32Array::from(vec![10000, 17890]);
let array = Arc::new(a) as ArrayRef;
let b = cast(&array, &DataType::Timestamp(TimeUnit::Nanosecond, None)).unwrap();
let c = b.as_any().downcast_ref::<TimestampNanosecondArray>().unwrap();
}
thread 'cast::tests::test_cast_date32_to_timestamp' panicked at 'called `Result::unwrap()` on an `Err` value: CastError("Casting from Date32 to Timestamp(Nanosecond, None) not supported")', arrow-cast/src/cast.rs:7701:80
Expected behavior
Cast should work Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
Related to apache/datafusion#4644
Postgresql and datafusion support to cast date32 to timestamp, however its not yet covered by arrow-rs
To Reproduce
Expected behavior
Cast should work
Additional context
The text was updated successfully, but these errors were encountered: