Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #11294 - avoid applying Filter Pushdown optimization for UNION/EXCEPT without ALL #11315

Merged
merged 2 commits into from
Mar 23, 2024

Conversation

Mytherin
Copy link
Collaborator

Fixes #11294
Fixes #11163

This was a regression introduced by an internal change in how UNION/EXCEPT without ALL were planned. Previously an explicit LogicalDistinct would be pushed into the plan, but after the change the LogicalSetOperation would instead store this information internally. The filter pushdown optimizer was not correctly adjusted for the new operator causing it to always assume the set operation was of the UNION ALL/EXCEPT ALL variant - which caused an incorrect plan to be constructed.

@github-actions github-actions bot marked this pull request as draft March 22, 2024 22:40
@Mytherin Mytherin marked this pull request as ready for review March 22, 2024 22:41
@Mytherin Mytherin merged commit f339e3c into duckdb:main Mar 23, 2024
46 checks passed
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 28, 2024
@Mytherin Mytherin deleted the issue11294 branch June 7, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant