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 None Projections in Projection Pushdown #9005

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Fix None Projections in Projection Pushdown #9005

merged 2 commits into from
Jan 26, 2024

Conversation

berkaysynnada
Copy link
Contributor

Which issue does this PR close?

Closes #9004.

Rationale for this change

When source projections are none, it means it projects all columns in its file schema. This case was not properly handled.

What changes are included in this PR?

Replace None's with all indices in file schema.

Are these changes tested?

Yes, an slt test is added similar to the one in the issue.

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jan 26, 2024
----

statement ok
set datafusion.optimizer.max_passes=1;
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I remember default value is 3. It is better to restore it 3.

Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

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

LGTM!

@jonahgao
Copy link
Member

Thank you! @berkaysynnada

@alamb alamb merged commit ec6abec into apache:main Jan 26, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PhysicalOptimizer rule 'ProjectionPushdown' failed, due to generate a different schema
4 participants