Skip to content

chore(catalog-listing): remove deprecated split_files free fn (Closes #23080) - #23152

Merged
alamb merged 1 commit into
apache:mainfrom
Dodothereal:chore/remove-deprecated-catalog-listing-split-files
Jun 24, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
Dodothereal:chore/remove-deprecated-catalog-listing-split-files

Conversation

@Dodothereal

Copy link
Copy Markdown
Contributor

Fixes #23080 (partial)

Summary

Removes datafusion_catalog_listing::helpers::split_files, deprecated since 47.0.0 in favor of the FileGroup::split_files method on datafusion-catalog/datasource::file_groups::FileGroup.

Verified workspace-wide:

  • 0 non-test call sites for the deprecated free function (grep -rn "split_files" --include="*.rs")
  • The 5 in-tree references in datafusion/catalog-listing/src/helpers.rs::tests::test_split_files are calls on FileGroup values (files.clone().split_files(N)), not the deprecated free function — they exercise FileGroup::split_files correctly.
  • 3 other call sites in datafusion/catalog-listing/src/table.rs also call the FileGroup method.
  • cargo check -p datafusion-catalog-listing is clean (no warnings after also dropping the now-unused use std::mem;).
  • cargo test -p datafusion-catalog-listing test_split_files passes.

This is a 36-line pure deletion: 35 lines for the function body plus the use std::mem; import. Replaces only — the public method FileGroup::split_files already exists at datafusion/datasource/src/file_groups.rs:454 and is what callers use.

Test plan

  • cargo check -p datafusion-catalog-listing ✓ (clean)
  • cargo test -p datafusion-catalog-listing test_split_files ✓ 1 passed
  • grep -rn "helpers::split_files\|use.*helpers::{.*split_files" datafusion/ → 0 matches after this change

(e of in-tree call sites verified before edit via workspace grep; revisited after edit.)

AI assistance

This patch was drafted with the help of an AI coding assistant. The diff was reviewed line by line before submission and the change was verified independently (cargo check + a focused cargo test run).

Signed-off-by: Dodothereal [email protected]

…pache#23080)

Removes the free function `split_files` from
`datafusion_catalog_listing::helpers`, deprecated since 47.0.0
in favor of the `FileGroup::split_files` method on
`datafusion-catalog/datasource::file_groups::FileGroup`.

Verified across the workspace:
- 0 non-test call sites for the free function
- In-tree tests at helpers.rs::test_split_files already exercise
  the `FileGroup::split_files` method, not the removed fn
- Test `datafusion_catalog_listing::test_split_files` still passes

Refs apache#23080 (partial; following the deprecation-removal series
apache#23129, apache#23131, apache#23132, apache#23134, apache#23135, apache#23142, apache#23143, apache#23144,
apache#23145).

Signed-off-by: Dodothereal <[email protected]>
@github-actions github-actions Bot added the catalog Related to the catalog crate label Jun 24, 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-catalog-listing v54.0.0 (current)
       Built [  52.811s] (current)
     Parsing datafusion-catalog-listing v54.0.0 (current)
      Parsed [   0.014s] (current)
    Building datafusion-catalog-listing v54.0.0 (baseline)
       Built [  44.746s] (baseline)
     Parsing datafusion-catalog-listing v54.0.0 (baseline)
      Parsed [   0.012s] (baseline)
    Checking datafusion-catalog-listing v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   0.083s] 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_catalog_listing::helpers::split_files, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/33701b08b2061173c09dbab5ccffd3052a7d815f/datafusion/catalog-listing/src/helpers.rs:142

     Summary semver requires new major version: 1 major and 0 minor checks failed
    Finished [  98.718s] datafusion-catalog-listing

@github-actions github-actions Bot added the auto detected api change Auto detected API change label Jun 24, 2026
@alamb
alamb added this pull request to the merge queue Jun 24, 2026
Merged via the queue into apache:main with commit b08d70e Jun 24, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto detected api change Auto detected API change catalog Related to the catalog crate v55.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove old deprecated code

3 participants