You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "WaterWhisperer (via GitHub)" <gi...@apache.org> on 2026/09/11 16:49:44 UTC
[PR] chore: remove deprecated Parquet APIs past the API health policy [datafusion]
WaterWhisperer opened a new pull request, #25202:
URL: https://github.com/apache/datafusion/pull/25202
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
- Closes #24540
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
Please explain the problem you are trying to solve in terms of the user-visible
behavior, rather than the implementation.
For example, "The code in `foo.rs` doesn't handle nulls" is a symptom of the
implementation. "COUNT(DISTINCT) returns wrong results when the column contains
nulls" is the user-visible problem.
-->
The deprecated Parquet APIs have past the API health policy.
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here, but it is sometimes worth providing a summary of the individual changes in this PR.
-->
- Remove the deprecated `fetch_parquet_metadata`, `fetch_statistics`, and `statistics_from_parquet_meta_calc` functions.
- Remove the deprecated `ParquetSource::predicate` method.
- Remove the associated unused imports and test.
## What is the testing strategy for this PR?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
Briefly describe how this PR is tested, and point to the specific tests you added. For example: 'This new feature is covered by the `sqllogictest` cases added in `foo.slt`'.
If this PR does not add tests, explain why. For example, if the change is already covered by existing tests, please mention it.
You should also check the `codecov` bot reply on this PR to confirm the changed code is exercised.
-->
No new tests are added because this only removes deprecated apis.
Tested by:
```bash
./dev/rust_lint.sh
```
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
If there are any breaking changes to public APIs, please add the `api change` label.
-->
Yes. It's a breaking Rust API change because public deprecated APIs are removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] chore: remove deprecated Parquet APIs past the API health policy [datafusion]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #25202:
URL: https://github.com/apache/datafusion/pull/25202#issuecomment-5639076078
<!-- semver-check-comment -->
Thank you for opening this pull request!
Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/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>
<summary>Details</summary>
```
Cloning apache/main
Building datafusion-datasource-parquet v55.0.0 (current)
Built [ 59.253s] (current)
Parsing datafusion-datasource-parquet v55.0.0 (current)
Parsed [ 0.039s] (current)
Building datafusion-datasource-parquet v55.0.0 (baseline)
Built [ 51.279s] (baseline)
Parsing datafusion-datasource-parquet v55.0.0 (baseline)
Parsed [ 0.037s] (baseline)
Checking datafusion-datasource-parquet v55.0.0 -> v55.0.0 (no change; assume patch)
Checked [ 0.235s] 223 checks: 221 pass, 2 fail, 0 warn, 31 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.50.0/src/lints/function_missing.ron
Failed in:
function datafusion_datasource_parquet::file_format::fetch_parquet_metadata, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/file_format.rs:652
function datafusion_datasource_parquet::fetch_parquet_metadata, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/file_format.rs:652
function datafusion_datasource_parquet::file_format::fetch_statistics, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/file_format.rs:675
function datafusion_datasource_parquet::fetch_statistics, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/file_format.rs:675
function datafusion_datasource_parquet::file_format::statistics_from_parquet_meta_calc, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/file_format.rs:697
function datafusion_datasource_parquet::statistics_from_parquet_meta_calc, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/file_format.rs:697
--- failure inherent_method_missing: pub method removed or renamed ---
Description:
A publicly-visible method or associated fn is no longer available under its prior name. It 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.50.0/src/lints/inherent_method_missing.ron
Failed in:
ParquetSource::predicate, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/9aa108929b2879c28f04d56b5bbe8b37c52f4a4a/datafusion/datasource-parquet/src/source.rs:399
Summary semver requires new major version: 2 major and 0 minor checks failed
Finished [ 112.386s] datafusion-datasource-parquet
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] chore: remove deprecated Parquet APIs past the API health policy [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #25202:
URL: https://github.com/apache/datafusion/pull/25202
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] chore: remove deprecated Parquet APIs past the API health policy [datafusion]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #25202:
URL: https://github.com/apache/datafusion/pull/25202#issuecomment-5639308706
## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/25202?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 81.94%. Comparing base ([`224cc56`](https://app.codecov.io/gh/apache/datafusion/commit/224cc563cc38617f85a5c22f63265961dde2b57e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`5151e08`](https://app.codecov.io/gh/apache/datafusion/commit/5151e086e1f744c0fe0720cceadb89f3e4c8a71c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 6 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #25202 +/- ##
==========================================
+ Coverage 81.91% 81.94% +0.02%
==========================================
Files 1132 1133 +1
Lines 421314 423483 +2169
Branches 421314 423483 +2169
==========================================
+ Hits 345135 347012 +1877
- Misses 55771 55880 +109
- Partials 20408 20591 +183
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/25202?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] chore: remove deprecated Parquet APIs past the API health policy [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #25202:
URL: https://github.com/apache/datafusion/pull/25202#issuecomment-5749060198
Thank you @WaterWhisperer and @nuno-faria
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org