goldmedal commented on issue #11639:
URL: https://github.com/apache/datafusion/issues/11639#issuecomment-2253813569

   > @goldmedal If we move the expression expansion to analyzer as the comment 
said, I guess you can still tell the difference from `SELECT * FROM A and 
SELECT c1, c2, c3 FROM A` _before optimizer_. I think expand expression in 
builder is quite early, if there are 1000 columns, we need to carry those 
columns around in many places. It is better to delay expansion _lazily_ as long 
as possible.
   
   I think I got it. So, ideally, we don't do any expansions in the planner or 
builder. We need to have an analyze rule or optimize rule to expand the 
expression. If we move this to analyze or optimizer, I can get the wildcard 
expression before optimizing, even if we don't add a customized behavior in 
ExprPlanner, right?


-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to