This is an automated email from the ASF dual-hosted git repository.
kontinuation pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new d869cba chore: Upgrade ADBC to 0.20.0 release (adbc_core + adbc_ffi)
and adapt API changes (#190)
d869cba is described below
commit d869cba9c98c01a105974daf7dbb081e45cc4439
Author: Kristin Cowalcijk <[email protected]>
AuthorDate: Wed Oct 8 03:29:30 2025 +0800
chore: Upgrade ADBC to 0.20.0 release (adbc_core + adbc_ffi) and adapt API
changes (#190)
This is part of the forked/non-crates.io dependency elimination plan:
https://github.com/apache/sedona-db/pull/165. We switched the adbc_core version
from a git rev to the latest release version and fixed API breaking changes.
---
Cargo.toml | 3 ++-
rust/sedona-adbc/Cargo.toml | 1 +
rust/sedona-adbc/src/database.rs | 4 ++--
rust/sedona-adbc/src/lib.rs | 3 +--
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index bdce542..e6d5bda 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,7 +54,8 @@ rust-version = "1.82"
[workspace.dependencies]
approx = "0.5"
abi_stable = "0.11.3"
-adbc_core = { git = "https://github.com/apache/arrow-adbc", rev =
"1ba248290cd299c4969b679463bcd54c217cf2e4" }
+adbc_core = "0.20.0"
+adbc_ffi = "0.20.0"
lru = "0.12"
arrow = { version = "55.1.0", features = ["prettyprint", "ffi", "chrono-tz"] }
arrow-array = { version = "55.1.0" }
diff --git a/rust/sedona-adbc/Cargo.toml b/rust/sedona-adbc/Cargo.toml
index 7a557a7..f7796b2 100644
--- a/rust/sedona-adbc/Cargo.toml
+++ b/rust/sedona-adbc/Cargo.toml
@@ -29,6 +29,7 @@ result_large_err = "allow"
[dependencies]
adbc_core = { workspace = true }
+adbc_ffi = { workspace = true }
arrow-array = { workspace = true }
arrow-schema = { workspace = true }
datafusion = { workspace = true }
diff --git a/rust/sedona-adbc/src/database.rs b/rust/sedona-adbc/src/database.rs
index e8697da..248d51c 100644
--- a/rust/sedona-adbc/src/database.rs
+++ b/rust/sedona-adbc/src/database.rs
@@ -51,12 +51,12 @@ impl Optionable for SedonaDatabase {
impl Database for SedonaDatabase {
type ConnectionType = SedonaConnection;
- fn new_connection(&mut self) -> Result<SedonaConnection> {
+ fn new_connection(&self) -> Result<SedonaConnection> {
self.new_connection_with_opts([])
}
fn new_connection_with_opts(
- &mut self,
+ &self,
opts: impl IntoIterator<Item = (OptionConnection, OptionValue)>,
) -> Result<SedonaConnection> {
SedonaConnection::try_new(opts)
diff --git a/rust/sedona-adbc/src/lib.rs b/rust/sedona-adbc/src/lib.rs
index 7e7da28..ae88f48 100644
--- a/rust/sedona-adbc/src/lib.rs
+++ b/rust/sedona-adbc/src/lib.rs
@@ -21,7 +21,6 @@ pub mod database;
pub mod driver;
pub mod statement;
-use adbc_core::error::{Error, Status};
use driver::SedonaDriver;
-adbc_core::export_driver!(AdbcSedonadbDriverInit, SedonaDriver);
+adbc_ffi::export_driver!(AdbcSedonadbDriverInit, SedonaDriver);