jorgecarleitao commented on issue #237: URL: https://github.com/apache/arrow-datafusion/issues/237#issuecomment-833828498
fwiw, when a logical optimization is applied, the expressions are re-written and the "column name" is consequently re-written. Thus, what was named `LIMIT (0 + 0)` becomes `LIMIT 0`. To apply it on the logical level, we may need to wrap the expression by an `.alias` for it to preserve the column name. I agree that the sooner in the optimization these are applied, the higher the likelihood of synergies between optimizers. -- 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]
