Skip to content

Conversation

@mustafasrepo
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

In the review @joroKr21 pointed a place where we do not check for trivial expression. With this PR, I have moved the code to decide whether a projection is necessary or not to its own function. By this way, we can be more explicit. Inconsistent usages could be decreased.

Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the optimizer Optimizer rules label Jan 31, 2024
@mustafasrepo mustafasrepo changed the title Add check for unnecessary projection [MINOR]: Add check for unnecessary projection Jan 31, 2024
Copy link
Contributor

@joroKr21 joroKr21 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @mustafasrepo

@alamb alamb merged commit 5c48a21 into apache:main Jan 31, 2024
@alamb
Copy link
Contributor

alamb commented Jan 31, 2024

Thanks @comphead and @mustafasrepo and @joroKr21 -- it is a great example of improving the code as a team ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants