Skip to content

refactor(engine): extract spill/codec.rs (SPL-3 #2325) - #4369

Closed
oferchen wants to merge 2 commits into
refactor/spill-extract-errorfrom
refactor/spill-extract-codec
Closed

oferchen wants to merge 2 commits into
refactor/spill-extract-errorfrom
refactor/spill-extract-codec

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Second leaf-first extraction per docs/audits/spill-rs-decomposition-plan.md. Moves the SpillCodec trait out of spill/mod.rs into its own submodule, following the pattern established by SPL-2 (spill/error.rs, PR #4345).

  • New file: crates/engine/src/concurrent_delta/spill/codec.rs (37 lines).
  • spill/mod.rs shrinks by the trait body; adds mod codec; + pub use codec::SpillCodec;.
  • No public API change. Re-export keeps super::spill::SpillCodec (used by the production DeltaResult impl in concurrent_delta/types.rs) resolving unchanged.
  • Codec-related tests remain in spill/mod.rs and migrate alongside the trait under SPL-8 per the plan.

Refs: #2325, #2323. Stacked on top of #4345 (SPL-2).

Test plan

  • cargo check -p engine --all-features --tests
  • cargo fmt --all
  • CI: fmt + clippy
  • CI: nextest stable
  • CI: Windows / macOS / Linux musl

@oferchen
oferchen force-pushed the refactor/spill-extract-codec branch from f2c2b0a to dfceab4 Compare May 18, 2026 00:12
@oferchen
oferchen force-pushed the refactor/spill-extract-error branch 3 times, most recently from 6aec6dc to 3b0a8a7 Compare May 18, 2026 01:19
@oferchen
oferchen force-pushed the refactor/spill-extract-codec branch 3 times, most recently from 0f61354 to 74b6e16 Compare May 18, 2026 01:25
@oferchen
oferchen force-pushed the refactor/spill-extract-error branch from 3b0a8a7 to bdd4e7f Compare May 18, 2026 01:25
@oferchen
oferchen force-pushed the refactor/spill-extract-codec branch from 74b6e16 to 371306f Compare May 18, 2026 01:29
@oferchen
oferchen force-pushed the refactor/spill-extract-error branch from bdd4e7f to 7dc9260 Compare May 18, 2026 01:30
oferchen added 2 commits May 18, 2026 05:09
First step of the spill.rs decomposition plan. Moves the SpillError
enum and its Display/Error/From impls into a dedicated leaf module
under crates/engine/src/concurrent_delta/spill/error.rs.

spill.rs becomes spill/mod.rs and re-exports SpillError so the
existing public path `engine::concurrent_delta::spill::SpillError`
continues to resolve. No behavior or public API changes.
@oferchen
oferchen force-pushed the refactor/spill-extract-codec branch from 371306f to d46fcb0 Compare May 18, 2026 02:10
@oferchen
oferchen force-pushed the refactor/spill-extract-error branch 3 times, most recently from 58e10d0 to 28bf9e2 Compare May 18, 2026 02:14
@oferchen
oferchen deleted the branch refactor/spill-extract-error May 18, 2026 02:16
@oferchen oferchen closed this May 18, 2026
@oferchen
oferchen deleted the refactor/spill-extract-codec branch May 19, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant