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 #6184: skip unused column removal right after a filter with entries in the projection map #6221

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

Mytherin
Copy link
Collaborator

Fixes #6184

The subquery flattener inserted a filter with entries in the projection_map when using a LIMIT in a correlated subquery. Normally entries in the projection_map are only added after the RemoveUnusedColumns optimizer is called (by a different optimizer) - and the optimizer did not correctly take these entries into account. This PR fixes the issue by skipping pruning of columns under a filter with entries set in the projection_map.

@Mytherin Mytherin merged commit 65ea819 into duckdb:master Feb 12, 2023
@Mytherin Mytherin deleted the issue6184 branch February 16, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INTERNAL Error: Invalid PhysicalType for GetTypeIdSize for certain queries
1 participant