You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Jefffrey (via GitHub)" <gi...@apache.org> on 2023/02/27 11:34:46 UTC

[GitHub] [arrow-datafusion] Jefffrey commented on issue #5407: Eliminate SubqueryAlias

Jefffrey commented on issue #5407:
URL: https://github.com/apache/arrow-datafusion/issues/5407#issuecomment-1446173405

   Could you provide some more details/your thinking for this @jackwener ?
   
   I assume the intention is for this to be an rule during logical plan optimization (at the end?) to remove the SubqueryAlias nodes and for nodes higher above the original SubqueryAlias node to have any references to the SubqueryAlias to be expanded to a proper qualified reference like so from:
   
   ```
   Projection: a.a
     SubqueryAlias: a
       Filter: ta.a = Int64(1)
         TableScan: ta projection=[a]
   ```
   
   to:
   
   ```
   Projection: ta.a
     Filter: ta.a = Int64(1)
       TableScan: ta projection=[a]
   ```
   
   Does this line up with what you're imagining?


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org