andygrove commented on PR #3242:
URL: 
https://github.com/apache/arrow-datafusion/pull/3242#issuecomment-1225806077

   I filed https://github.com/apache/arrow-datafusion/issues/3248 for removing 
the redundant projection. The physical plan being returned from 
`ViewTable::scan` does not have it, so I think this is a bug that is unrelated 
to this PR.
   
   ViewScan::scan returns this:
   
   ```
   ProjectionExec: expr=[b@0 as b]
     ProjectionExec: expr=[2 as b]
       EmptyExec: produce_one_row=true
   ```
   
   `EXPLAIN ANALYZE` shows this:
   
   ```
   +---------------+---------------------------------------+
   | plan_type     | plan                                  |
   +---------------+---------------------------------------+
   | logical_plan  | Projection: #v.b                      |
   |               |   TableScan: v projection=[b]         |
   | physical_plan | ProjectionExec: expr=[b@0 as b]       |
   |               |   ProjectionExec: expr=[b@0 as b]     |
   |               |     ProjectionExec: expr=[2 as b]     |
   |               |       EmptyExec: produce_one_row=true |
   |               |                                       |
   +---------------+---------------------------------------+
   ```


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