Skip to content

refactor(engine): extract spill/stats.rs (SPL-6 #2328) - #4386

Merged
oferchen merged 1 commit into
masterfrom
feature/spl-6-stats-extract
May 18, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/spl-6-stats-extract

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Move `SpillStats` (the diagnostic-counter snapshot type) from `spill.rs` into a new `spill/stats.rs` submodule per the SPL-1 audit's leaves-first order (error -> codec -> stats -> tempfile -> policy -> buffer).
  • Re-export `SpillStats` from the parent so the public API at `engine::concurrent_delta::spill::SpillStats` (and the higher-level `engine::concurrent_delta::SpillStats`) is unchanged.
  • Parent `spill.rs` shrinks from 1232 to 1217 lines; new `spill/stats.rs` is 24 lines.

Test plan

  • `cargo fmt --all` clean
  • No public-API change: all original symbol paths preserved via `pub use stats::SpillStats`
  • No code change beyond move + re-export
  • No tests had to move or change (the `spill_stats()` accessor stays on `SpillableReorderBuffer`; `spill_stats_tracking` exercises buffer behaviour so it stays with the buffer in the parent)

Closes #2328.

@oferchen
oferchen force-pushed the feature/spl-6-stats-extract branch from c9a47bb to 54581aa Compare May 18, 2026 00:12
@oferchen
oferchen force-pushed the feature/spl-6-stats-extract branch from 54581aa to 00ed19a Compare May 18, 2026 00:57
@oferchen
oferchen merged commit 7f38be4 into master May 18, 2026
4 of 15 checks passed
oferchen added a commit that referenced this pull request May 18, 2026
… (#4478)

Update Current-path column for SpillableReorderBuffer rows after
SPL-13 extracted them to spill/buffer.rs. Update SpillError rows after
SPL-2 (#4345) and SpillStats rows after SPL-6 (#4386). Add a History
section cross-linking the four extraction PRs (SPL-2, SPL-6,
SPL-3-tempfile, SPL-13) that have shipped. The 42-symbol public API
table remains at OK across all entries.
oferchen added a commit that referenced this pull request May 18, 2026
… (#4478)

Update Current-path column for SpillableReorderBuffer rows after
SPL-13 extracted them to spill/buffer.rs. Update SpillError rows after
SPL-2 (#4345) and SpillStats rows after SPL-6 (#4386). Add a History
section cross-linking the four extraction PRs (SPL-2, SPL-6,
SPL-3-tempfile, SPL-13) that have shipped. The 42-symbol public API
table remains at OK across all entries.
oferchen added a commit that referenced this pull request May 18, 2026
… (#4478)

Update Current-path column for SpillableReorderBuffer rows after
SPL-13 extracted them to spill/buffer.rs. Update SpillError rows after
SPL-2 (#4345) and SpillStats rows after SPL-6 (#4386). Add a History
section cross-linking the four extraction PRs (SPL-2, SPL-6,
SPL-3-tempfile, SPL-13) that have shipped. The 42-symbol public API
table remains at OK across all entries.
@oferchen
oferchen deleted the feature/spl-6-stats-extract branch May 19, 2026 15:13
oferchen added a commit that referenced this pull request Aug 24, 2026
… (#4478)

Update Current-path column for SpillableReorderBuffer rows after
SPL-13 extracted them to spill/buffer.rs. Update SpillError rows after
SPL-2 (#4345) and SpillStats rows after SPL-6 (#4386). Add a History
section cross-linking the four extraction PRs (SPL-2, SPL-6,
SPL-3-tempfile, SPL-13) that have shipped. The 42-symbol public API
table remains at OK across all entries.
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