You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "huaxingao (via GitHub)" <gi...@apache.org> on 2026/05/29 22:25:40 UTC
[PR] Spark: Deprecate SparkFilters in favor of SparkV2Filters [iceberg]
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Deprecate SparkFilters in favor of SparkV2Filters [iceberg]
Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao commented on PR #16616:
URL: https://github.com/apache/iceberg/pull/16616#issuecomment-4585049454
Thanks @singhpk234 for the review!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Deprecate SparkFilters in favor of SparkV2Filters [iceberg]
Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao merged PR #16616:
URL: https://github.com/apache/iceberg/pull/16616
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org