Dandandan opened a new pull request #268:
URL: https://github.com/apache/arrow-datafusion/pull/268
# Which issue does this PR close?
Closes #264
# Rationale for this change
SQL planning to logical plan had a wrong rule: whenever the schema fields
names were equal, it applies an "optimization" to remove the projection.
I found this while working on the `SELECT DISTINCT`.
If we want to have an optimization pass like this, it should look at whether
the expressions are equal instead and I think it would be better to include as
a real optimization rule instead of while building the logical plan from the
query.
# What changes are included in this PR?
Skip the "optimization".
# Are there any user-facing changes?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]