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

[CALCITE-6877] Generate LogicalProject in RelRoot.project() when mapping is not name trivial #4230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nielspardon
Copy link
Contributor

Copy link
Contributor

@mihaibudiu mihaibudiu left a comment

Choose a reason for hiding this comment

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

Interesting that this does not affect any existing tests.

@nielspardon
Copy link
Contributor Author

Interesting that this does not affect any existing tests.

Indeed, I was also a bit suprised that this code has been there for 9 years and nobody has encountered this before.

One thing I found was that when you start with a SQL statement through the SQL parser it combines the column reduction and renaming into a single LogicalProject which ends up within the RelRoot.rel so through the normal test approach in e.g. SqlToRelConverterTest you will not encounter this scenario.

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.

2 participants