alamb opened a new issue #617:
URL: https://github.com/apache/arrow-datafusion/issues/617
**Describe the bug**
Problem:
I have a (user defined node) that looks like
```
ExtensionNode (expr uses col1, col2, col3) --> outputs new_col
TableScan t1 of (col1, col2, col3)
```
Prior to https://github.com/apache/arrow-datafusion/pull/55 this worked
After that PR the projection pushdown logic decides that since the `col1`,
`col2` and `col3` references don't have the table qualifier `t1` on them, they
are removed and the optimized plan looks like
```
ExtensionNode (expr uses col1, col2, col3) --> outputs new_col
TableScan t1 of (col1)
```
Which then has issues because it expects col2 and col3 to be present but
they have been "optimized" out
**Expected behavior**
The table scan should include `col2` and `col3` (they should not be
optimized out), in addition to `col1`
--
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]