nl5887 commented on issue #2581:
URL: 
https://github.com/apache/arrow-datafusion/issues/2581#issuecomment-1165949721

   @tustvold I think quite a lot needs to be changed. Most of the code will do 
column selection by name, whereas the relevant data of the sql parsing (the 
indexed field structure) is lost. 
   
   Correct me if I'm wrong, but I think the datafusion core column needs to be 
converted to an enum consisting of Column and IndexedField. The retrieval from 
the DFSchema needs to be done using the column itself instead of (qualified) 
name, and the required_columns shouldn't be derived from the output schema, but 
from the plan itself.
   
   Probably a lot more needs to be done, but this is necessary to be able to be 
able to push down the projections.
   
   Looking forward to your thoughts!


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