Skip to content

[physical-plan]: remove deprecated spill_record_batch_by_size#23029

Draft
alamb wants to merge 1 commit into
apache:mainfrom
alamb:codex/remove-spill-record-batch-by-size
Draft

[physical-plan]: remove deprecated spill_record_batch_by_size#23029
alamb wants to merge 1 commit into
apache:mainfrom
alamb:codex/remove-spill-record-batch-by-size

Conversation

@alamb

@alamb alamb commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • N/A.

Rationale for this change

datafusion_physical_plan::spill::spill_record_batch_by_size was deprecated in DataFusion 46.0.0 in favor of SpillManager::spill_record_batch_by_size.

The API health policy deprecation guidelines say deprecated methods remain for 6 major versions or 6 months, whichever is longer. This API has exceeded that window, so this removes the deprecated wrapper.

What changes are included in this PR?

  • Removes the deprecated datafusion_physical_plan::spill::spill_record_batch_by_size function.

Are these changes tested?

By CI

Are there any user-facing changes?

Yes. This removes a public Rust API that was deprecated in DataFusion 46.0.0. Downstream users should migrate to datafusion_physical_plan::spill::SpillManager::spill_record_batch_by_size.

This is an API change and should be labeled api-change.

@alamb alamb added the api change Changes the API exposed to users of the crate label Jun 18, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation physical-plan Changes to the physical-plan crate labels Jun 18, 2026
@github-actions

Copy link
Copy Markdown

Thank you for opening this pull request!

Reviewer note: cargo-semver-checks reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).

Details
     Cloning apache/main
    Building datafusion-physical-plan v54.0.0 (current)
       Built [  35.948s] (current)
     Parsing datafusion-physical-plan v54.0.0 (current)
      Parsed [   0.138s] (current)
    Building datafusion-physical-plan v54.0.0 (baseline)
       Built [  35.164s] (baseline)
     Parsing datafusion-physical-plan v54.0.0 (baseline)
      Parsed [   0.139s] (baseline)
    Checking datafusion-physical-plan v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   0.878s] 223 checks: 222 pass, 1 fail, 0 warn, 30 skip

--- failure function_missing: pub fn removed or renamed ---

Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.48.0/src/lints/function_missing.ron

Failed in:
  function datafusion_physical_plan::spill::spill_record_batch_by_size, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/4bfa2adb465669693e476adfe85560e4239d04b5/datafusion/physical-plan/src/spill/mod.rs:255

     Summary semver requires new major version: 1 major and 0 minor checks failed
    Finished [  74.232s] datafusion-physical-plan

@github-actions github-actions Bot added the auto detected api change Auto detected API change label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api change Changes the API exposed to users of the crate auto detected api change Auto detected API change documentation Improvements or additions to documentation physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant