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

   > I assume the intention is for this to be an rule during logical plan 
optimization (at the end?) 
   We can remove it at a relatively early stage, so plan can be optimized by 
`PushdownProjection` `EliminateProjection` again.
   
   I think a **possible** method : we can use alias to **keep schema 
unchanged** like following
   
   ```
   Projection: t1.a
     SubqueryAlias: t1
       Filter: ta.a = Int64(1)
         TableScan: ta projection=[a]
   to:
   Projection: ta.a as t1.a
     Filter: ta.a = Int64(1)
       TableScan: ta projection=[a]
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to