Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions adbc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion adbc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ publish = false
[dependencies]
adbc_core = "0.24"
adbc_ffi = { version = "0.24", optional = true }
arrow-array = "59"
arrow-array = { version = "59", features = ["chrono-tz"] }
Comment thread
oss-reviewer-bot[bot] marked this conversation as resolved.
Resolved

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chrono-tz is unmaintained now (RUSTSEC-2026-0555). Is there a path to use something else in the future?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The longer-term path would be to adopt an Arrow version with a maintained timezone backend, potentially Jiff. Arrow 59 currently implements named-timezone support through chrono-tz, so this PR enables its existing capability to handle timestamps such as Etc/UTC. Replacing it directly in ADBC would require changing Arrow itself. We should track that migration explicitly; the advisory is for maintenance status, not a reported vulnerability.

arrow-buffer = "59"
arrow-schema = "59"
# Native Rust integration with the kernel crate in this repository. The
Expand All @@ -38,6 +38,7 @@ tokio = { version = "1", features = ["rt-multi-thread"] }

[dev-dependencies]
adbc_driver_manager = "0.24"
arrow-cast = "59"
wiremock = "0.6"

[features]
Expand Down
20 changes: 20 additions & 0 deletions adbc/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ Project URL: https://github.com/chronotope/chrono
Copyright: Copyright (c) 2014--2026, Kang Seonghoon and contributors; Copyright (c) 2014, Kang Seonghoon


Package: chrono-tz
Project URL: https://github.com/chronotope/chrono-tz
Copyright: Copyright (c) 2016-2024 Benjamin Sago & the chronotope maintainers


Package: dashmap
Project URL: https://github.com/xacrimon/dashmap
Copyright: Copyright (c) 2025 Joel Wejdenstål
Expand Down Expand Up @@ -107,6 +112,16 @@ Project URL: https://github.com/RustCrypto/password-hashes
Copyright: Copyright (c) 2017 Artyom Pavlov; Copyright (c) 2018-2023 The RustCrypto Project Developers


Package: phf
Project URL: https://github.com/rust-phf/rust-phf
Copyright: Copyright (c) 2014-2022 Steven Fackler, Yuki Okushi


Package: phf_shared
Project URL: https://github.com/rust-phf/rust-phf
Copyright: Copyright (c) 2014-2022 Steven Fackler, Yuki Okushi


Package: pkcs8
Project URL: https://github.com/RustCrypto/formats/tree/master/pkcs8
Copyright: Copyright (c) 2020-2023 The RustCrypto Project Developers
Expand Down Expand Up @@ -142,6 +157,11 @@ Project URL: https://github.com/serde-rs/json
Copyright: Copyright serde_json Authors.


Package: siphasher
Project URL: https://github.com/jedisct1/rust-siphash
Copyright: Copyright 2012-2016 The Rust Project Developers; Copyright 2016-2026 Frank Denis


Package: thiserror
Project URL: https://github.com/dtolnay/thiserror
Copyright: Copyright thiserror Authors.
Expand Down
12 changes: 12 additions & 0 deletions adbc/tests/timezone.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use arrow_array::TimestampMicrosecondArray;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low — The new test file lacks the Databricks Apache-2.0 license header that adbc/tests/live.rs has. Add the same header at the top.

🔀 Found by Claude Opus 5.5 · confirmed by the judge

use arrow_cast::display::array_value_to_string;

#[test]
fn supports_named_timezones_emitted_by_the_kernel() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low — The test hand-builds an Arrow array and never exercises the adbc driver or kernel, so its name overstates what it covers. It only checks that the chrono-tz feature is enabled. Rename it, or add a test that reads a real driver timestamp column.

🔀 Found by Claude Opus 5.5 · confirmed by the judge

let values = TimestampMicrosecondArray::from(vec![Some(0)]).with_timezone("Etc/UTC");
Comment thread
rahuls-db marked this conversation as resolved.
Resolved

assert_eq!(
array_value_to_string(&values, 0).unwrap(),
"1970-01-01T00:00:00Z"
);
}
Loading