huaxingao opened a new pull request, #16616:
URL: https://github.com/apache/iceberg/pull/16616
## Summary
`SparkFilters` converts the Spark DSv1 `Filter[]` API into Iceberg
`Expression`s. It is no longer referenced by Iceberg's main source code in any
supported Spark version (3.5, 4.0, 4.1) — all production call sites have
already migrated to `SparkV2Filters`, which converts the DSv2 `Predicate[]`
API. Only `TestSparkFilters` still references the class.
This PR:
- Adds `@Deprecated` and a Javadoc deprecation notice to `SparkFilters` in
`spark/v3.5`, `spark/v4.0`, and `spark/v4.1`, with target removal in 1.12.0.
- Adds `@SuppressWarnings("deprecation")` to the matching `TestSparkFilters`
so its existing tests continue to run cleanly until the class itself is removed.
No production code changes; no behavior changes.
## Test plan
- [ ] `./gradlew spotlessCheck` passes in CI
- [ ] Existing `TestSparkFilters` continues to pass for v3.5 / v4.0 / v4.1
Made with [Cursor](https://cursor.com)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]