Repository navigation
fix(adbc): support named Arrow timezones #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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"] } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
@@ -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] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| use arrow_array::TimestampMicrosecondArray; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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"); | ||
|
rahuls-db marked this conversation as resolved.
Resolved
|
||
|
|
||
| assert_eq!( | ||
| array_value_to_string(&values, 0).unwrap(), | ||
| "1970-01-01T00:00:00Z" | ||
| ); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.