Skip to content

Deprecate PruningPredicate::try_new in favor of PruningPredicateBuilder #24128

Description

@zhuqi-lucas

Follow-up to #24074, per @alamb's suggestion.

#24074 introduced PruningPredicateBuilder (.with_file_schema(...), .with_error_counter(...), .with_max_in_list_size(...), .build(...)/.try_build(...)) as the extensible entry point for constructing a PruningPredicate.

As a follow-up we should:

  • Point people at PruningPredicateBuilder from the PruningPredicate::try_new doc comment.
  • Deprecate PruningPredicate::try_new (#[deprecated]) and migrate its call sites to the builder.
  • Move the construction logic into the builder so there is a single place to add future parameters.

Non-blocking cleanup — no behavior change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions