Skip to content

chore(datasource): remove deprecated add_row_stats (Closes #23080 - partial)#23134

Open
Dodothereal wants to merge 1 commit into
apache:mainfrom
Dodothereal:chore/remove-deprecated-add-row-stats
Open

chore(datasource): remove deprecated add_row_stats (Closes #23080 - partial)#23134
Dodothereal wants to merge 1 commit into
apache:mainfrom
Dodothereal:chore/remove-deprecated-add-row-stats

Conversation

@Dodothereal

Copy link
Copy Markdown
Contributor

Removes datafusion_datasource::add_row_stats (deprecated since 47.0.0 with replacement Statistics::add). Zero callers — the only references are the deprecated function definition and a single pub use re-export (carrying an explicit 'Remove when add_row_stats is remove' comment, indicating this was already acknowledged as future work). Pure 11-line deletion across 2 files. Closes #23080 (partial - fourth in housekeeping series after #23129, #23131, #23132). AI assistance: used an AI coding assistant; verified via repo-wide grep that the function has no callers.

`datafusion_datasource::add_row_stats` was deprecated in DataFusion 47.0.0 with the suggestion to use `Statistics::add`. Per the API health deprecation guidelines, APIs deprecated in 47.0.0 are eligible for removal now that datafusion is on 55.x.

A repo-wide grep confirms zero callers of `add_row_stats` — the only non-test references are the deprecated function definition itself and a single `pub use statistics::add_row_stats;` re-export line in `datafusion/datasource/src/mod.rs` (with a comment explicitly noting 'Remove when add_row_stats is remove'). This commit removes both the function and the now-unneeded re-export/comment.

Closes apache#23080 (partial — first in this batch to come from the 47.0.0-deprecated set).
@Dodothereal

Copy link
Copy Markdown
Contributor Author

Re-pinging: this PR is a 7-line removal of add_row_stats() in ListingOptions (deprecated since 1bc7aaa; follow-up to #22983 and closes part of #23080). cargo-semver-checks workflow may need re-running — happy to re-push if needed. (Continuation of the started sweep #23129 / #23131 / #23132 which landed.)

@Dodothereal

Copy link
Copy Markdown
Contributor Author

@alamb (and any other reviewer) — gentle ping: this is the 4th removal in the #23080 sweep; the first three (#23129, #23131, #23132) all landed today. Branch is up to date with upstream/main; commit 8b8e5f8 is ready for review. cargo-semver-checks should not need to bump since this is the only public-function removal in the datasource module on the branch. If you'd like me to rebase onto a recent main commit, let me know.

@Dodothereal

Copy link
Copy Markdown
Contributor Author

Friendly nudge — this is a zero-caller pure-removal that unblocks another cleanup in #23080 series. Ready when a maintainer can approve CI / merge. (Same for #23135 right behind it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datasource Changes to the datasource crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove old deprecated code

1 participant