build(bindings/python): migrate from jiff 0.2 to jiff 1.0 once PyO3 adds jiff 1 support

Open
#8,886 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
18/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python, rust
Domain
backend

Research direction

The change lives in bindings/python/Cargo.toml (pyo3 jiff-02 feature, jiff 0.2.15) and the bridge functions timestamp_from_jiff and timestamp_to_jiff in bindings/python/src/utils.rs, with call sites in options.rs, metadata.rs and operator.rs. Blocked upstream until PyO3 PR #6584 ships jiff 1.0 support, so first check that PR's status. Done means the bridge is removed and the Python bindings build and pass their tests on jiff 1.0.

Written by the indexing model from the issue text.

Description

bindings/python dependencies enhancement

Summary

PR #8761 upgraded opendal-core to jiff 1.0.1, but bindings/python still depends directly on jiff = "0.2.15" and enables PyO3's jiff-02 feature (bindings/python/Cargo.toml). To bridge the version split, bindings/python/src/utils.rs currently converts between jiff 0.2 and opendal_core::raw::Timestamp (jiff 1.0) via SignedDuration.

Upstream blocker

  • pyo3 0.30.1 only supports jiff ^0.2 via the jiff-02 feature.
  • PyO3/pyo3#6584 merged on Nov 23, adding the jiff feature for jiff 1. The Python binding migration still awaits a PyO3 release with that feature. The latest release on crates.io is 0.30.1, which supports only jiff 0.2 via jiff-02. (AI-generated update.)

Scope once unblocked

  1. Upgrade pyo3 in bindings/python/Cargo.toml to a release with jiff 1.0 support and switch from jiff-02 to the new jiff 1.0 feature.
  2. Upgrade jiff in bindings/python/Cargo.toml from 0.2.15 to 1.0.
  3. Simplify or remove the manual timestamp_from_jiff / timestamp_to_jiff bridge in bindings/python/src/utils.rs and update call sites in bindings/python/src/options.rs, bindings/python/src/metadata.rs, and bindings/python/src/operator.rs.

Drafted with AI assistance (Gemini 4 Neon) and verified against apache/opendal and PyO3/pyo3#6584.

Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.