Skip to content

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

Closed
nielspardon wants to merge 1 commit intoapache:mainfrom
nielspardon:par-6877
Closed

[CALCITE-6877] Generate LogicalProject in RelRoot.project() when mapping is not name trivial#4230
nielspardon wants to merge 1 commit intoapache:mainfrom
nielspardon:par-6877

Conversation

@nielspardon
Copy link
Contributor

…ing is not name trivial

Signed-off-by: Niels Pardon <par@zurich.ibm.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2025

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