Skip to content

chore(expr): remove deprecated Filter::try_new_with_having (Closes #23080 - partial) - #23145

Merged
alamb merged 1 commit into
apache:mainfrom
Dodothereal:chore/remove-deprecated-filter-with-having
Jun 24, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
Dodothereal:chore/remove-deprecated-filter-with-having

Conversation

@Dodothereal

Copy link
Copy Markdown
Contributor

Fixes #23080

Summary

Removes Filter::try_new_with_having, deprecated since 48.0.0 ("Use try_new instead"). A grep across the workspace confirms zero remaining callers and zero public re-exports — the method is definition-only. The 6-major-version grace period cited by the API-health policy is past due (we are now on 55.x).

Test plan

  • git grep -nE 'try_new_with_having' returns no matches in source or docs (only the removed definition site).

AI assistance: drafted with the help of an Anthropic coding assistant. Diff was reviewed line by line before submission, and the change was verified independently.

Signed-off-by: Dodothereal [email protected]

…ache#23080 - partial)

Filter::try_new_with_having has been deprecated since 48.0.0 in favor of
Filter::try_new. A grep across the workspace confirms zero remaining
callers and zero public re-exports — the function is definition-only.
With DataFusion now on 55.x, the 6-major-version grace period cited by
the API-health policy is past due.

AI assistance: drafted with the help of an Anthropic coding assistant. Diff was reviewed line by line before submission, and the change was verified independently.

Generated-by: Anthropic Claude
Signed-off-by: Dodothereal <[email protected]>
@github-actions github-actions Bot added the logical-expr Logical plan and expressions label Jun 24, 2026
@github-actions

Copy link
Copy Markdown

Thank you for opening this pull request!

Reviewer note: 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
     Cloning apache/main
    Building datafusion-expr v54.0.0 (current)
       Built [  26.925s] (current)
     Parsing datafusion-expr v54.0.0 (current)
      Parsed [   0.079s] (current)
    Building datafusion-expr v54.0.0 (baseline)
       Built [  27.261s] (baseline)
     Parsing datafusion-expr v54.0.0 (baseline)
      Parsed [   0.080s] (baseline)
    Checking datafusion-expr v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   2.153s] 223 checks: 222 pass, 1 fail, 0 warn, 30 skip

--- 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.48.0/src/lints/inherent_method_missing.ron

Failed in:
  Filter::try_new_with_having, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/33701b08b2061173c09dbab5ccffd3052a7d815f/datafusion/expr/src/logical_plan/plan.rs:2661
  Filter::try_new_with_having, previously in file /home/runner/work/datafusion/datafusion/target/semver-checks/git-apache_main/33701b08b2061173c09dbab5ccffd3052a7d815f/datafusion/expr/src/logical_plan/plan.rs:2661

     Summary semver requires new major version: 1 major and 0 minor checks failed
    Finished [  57.766s] datafusion-expr

@github-actions github-actions Bot added the auto detected api change Auto detected API change label Jun 24, 2026
@alamb
alamb added this pull request to the merge queue Jun 24, 2026
Merged via the queue into apache:main with commit 81f452d Jun 24, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto detected api change Auto detected API change logical-expr Logical plan and expressions v55.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove old deprecated code

3 participants