Skip to content

Conversation

Tpt
Copy link
Contributor

@Tpt Tpt commented Sep 30, 2025

Makes sure NOT X in Y gets rewritten into X NOT IN Y and similarly for EXISTS

@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules labels Sep 30, 2025
@alamb alamb changed the title feat: makes Expr::not normalize more negations feat: Simplify Expr::not more Oct 1, 2025
@alamb alamb changed the title feat: Simplify Expr::not more feat: Simplify NOT(IN ..) to NOT IN and NOT (EXISTS ..) to NOT EXISTS` Oct 1, 2025
@alamb alamb changed the title feat: Simplify NOT(IN ..) to NOT IN and NOT (EXISTS ..) to NOT EXISTS` feat: Simplify NOT(IN ..) to NOT IN and NOT (EXISTS ..) to NOT EXISTS Oct 1, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Tpt -- this looks like a nice improvement to me

@alamb alamb added the performance Make DataFusion faster label Oct 1, 2025
@alamb
Copy link
Contributor

alamb commented Oct 2, 2025

🤔 the CI failures look unrelated to this PR:

And it looks like it was fixed in #17855

I'll merge this branch up and hopefully we'll get a clean run

@xudong963 xudong963 added this pull request to the merge queue Oct 2, 2025
Merged via the queue into apache:main with commit b81073a Oct 2, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions optimizer Optimizer rules performance Make DataFusion faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants