Skip to content

Add owned codec writer sessions - #49

Merged
timkpaine merged 1 commit into
mainfrom
add-owned-codec-writers
Jul 18, 2026
Merged

timkpaine merged 1 commit into
mainfrom
add-owned-codec-writers

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Description

Add Codec::start_owned_writer alongside the borrowed writer API from 0.2.0. Owned sessions accept a boxed Write + Send sink, allowing downstream file objects to store a codec writer without unsafe self-references. Arrow IPC and Parquet share generic writer implementations across borrowed and owned sessions.

This is the missing storage boundary found while integrating resumable writers into fsspec-db. Callers can pass a cloneable shared sink to the writer and retain another handle for draining output.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (26 Rust tests and 51 Python tests)
  • New tests added for new functionality
  • Documentation updated
  • Changelog / version bump (left for release)

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.12%. Comparing base (079ce9b) to head (c7c8a49).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #49   +/-   ##
=======================================
  Coverage   94.12%   94.12%           
=======================================
  Files          11       11           
  Lines         545      545           
  Branches       25       25           
=======================================
  Hits          513      513           
  Misses         29       29           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

51 tests  ±0   51 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit c7c8a49. ± Comparison against base commit 079ce9b.

@timkpaine
timkpaine merged commit d73e74e into main Jul 18, 2026
6 checks passed
@timkpaine
timkpaine deleted the add-owned-codec-writers branch July 18, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant