Repository navigation
fix(adbc): support named Arrow timezones - #515
Conversation
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 2 Low
Looks good, with 2 low concerns. Turning on arrow-array's chrono-tz feature is the right fix for formatting named timezones. The regression test would fail if the feature were removed, but it doesn't exercise any driver code.
| use arrow_cast::display::array_value_to_string; | ||
|
|
||
| #[test] | ||
| fn supports_named_timezones_emitted_by_the_kernel() { |
There was a problem hiding this comment.
🔵 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
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 2 Low
Looks good: 2 low concerns. Turning on the chrono-tz feature is the right fix. The test would fail without it, because arrow-array can't parse "Etc/UTC" without that feature.
| @@ -0,0 +1,9 @@ | |||
| use arrow_array::TimestampMicrosecondArray; | |||
There was a problem hiding this comment.
🔵 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
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
| adbc_core = "0.24" | ||
| adbc_ffi = { version = "0.24", optional = true } | ||
| arrow-array = "59" | ||
| arrow-array = { version = "59", features = ["chrono-tz"] } |
There was a problem hiding this comment.
chrono-tz is unmaintained now (RUSTSEC-2026-0555). Is there a path to use something else in the future?
There was a problem hiding this comment.
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.
Description
Enable Arrow named-timezone support in the Rust ADBC crate so downstream Arrow consumers can render kernel timestamps tagged with names such as
Etc/UTC. Add a regression test that formats anEtc/UTCtimestamp through Arrow's display API and NOTICE attribution for the addedchrono-tz,phf,phf_shared, andsiphasherdependencies.This change is scoped to
adbc/and does not alter shared-kernel behavior.Testing
cargo test --manifest-path adbc/Cargo.toml(96 unit tests and the named-timezone regression test passed; 6 credentialed live tests ignored as designed)cargo clippy --manifest-path adbc/Cargo.toml --all-targets -- -D warningscargo +stable fmtchecks pass with an explicit default configuration to avoid inheriting formatter settings from the parent Universe checkoutcargo-deny 0.20.2 --manifest-path adbc/Cargo.toml --config deny.toml check licenses(licenses ok; no policy changes)cargo package --list --allow-dirty --manifest-path adbc/Cargo.tomlconfirms NOTICE is includedgit diff --check