diff --git a/Cargo.toml b/Cargo.toml index 5f176778..691d06e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,4 +60,4 @@ unicase = "2.6.0" url = "2.1" uuid = "1.0" vcpkg = "0.2" -arrow = { version = "51", default-features = false } +arrow = { version = "52", default-features = false } diff --git a/crates/duckdb/src/row.rs b/crates/duckdb/src/row.rs index ab6351ca..f3def7cf 100644 --- a/crates/duckdb/src/row.rs +++ b/crates/duckdb/src/row.rs @@ -559,12 +559,11 @@ impl<'stmt> Row<'stmt> { let value = array.value(row); - // TODO: remove this manual conversion once arrow-rs bug is fixed - let months = (value) as i32; - let days = (value >> 32) as i32; - let nanos = (value >> 64) as i64; - - ValueRef::Interval { months, days, nanos } + ValueRef::Interval { + months: value.months, + days: value.days, + nanos: value.nanoseconds, + } } _ => unimplemented!("{:?}", unit), },