Skip to content

Commit 227f915

Browse files
Update arrow requirement from 24 to 25 (#90)
* Update arrow requirement from 24 to 25 Updates the requirements on [arrow](https://github.com/apache/arrow-rs) to permit the latest version. - [Release notes](https://github.com/apache/arrow-rs/releases) - [Changelog](https://github.com/apache/arrow-rs/blob/master/CHANGELOG.md) - [Commits](apache/arrow-rs@24.0.0...25.0.0) --- updated-dependencies: - dependency-name: arrow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix clippy error Change-Id: I58e9216a2021d5aba2f8edd5b4fb51ada5a08ca7 Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wangfenjin <[email protected]>
1 parent 0967726 commit 227f915

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ memchr = "2.3"
4747
uuid = { version = "1.0", optional = true }
4848
smallvec = "1.6.1"
4949
cast = { version = "0.3", features = ["std"] }
50-
arrow = { version = "24", default-features = false, features = ["prettyprint", "ffi"] }
50+
arrow = { version = "25", default-features = false, features = ["prettyprint", "ffi"] }
5151
rust_decimal = "1.14"
5252
strum = { version = "0.24", features = ["derive"] }
5353
r2d2 = { version = "0.8.9", optional = true }

libduckdb-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ cc = { version = "1.0", features = ["parallel"], optional = true }
2828
vcpkg = { version = "0.2", optional = true }
2929

3030
[dev-dependencies]
31-
arrow = { version = "24", default-features = false, features = ["ffi"] }
31+
arrow = { version = "25", default-features = false, features = ["ffi"] }

src/row.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,9 @@ impl<'stmt> Row<'stmt> {
480480
}
481481
// hugeint: d:38,0
482482
if array.scale() == 0 {
483-
return ValueRef::HugeInt(array.value(row).into());
483+
return ValueRef::HugeInt(array.value(row));
484484
}
485-
ValueRef::Decimal(Decimal::from_i128_with_scale(
486-
array.value(row).into(),
487-
array.scale() as u32,
488-
))
485+
ValueRef::Decimal(Decimal::from_i128_with_scale(array.value(row), array.scale() as u32))
489486
}
490487
DataType::Timestamp(unit, _) if *unit == TimeUnit::Second => {
491488
let array = column.as_any().downcast_ref::<array::TimestampSecondArray>().unwrap();

0 commit comments

Comments
 (0)