Skip to content

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
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