You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/06 20:12:36 UTC

[GitHub] [arrow-datafusion] jorgecarleitao commented on issue #237: Extend & generalize constant folding / evaluation in logical optimizer

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:
users@infra.apache.org