jonahgao commented on issue #14380:
URL: https://github.com/apache/datafusion/issues/14380#issuecomment-2651214933

   > Computing a schema for a wildcard differs from expanding the actual 
expressions that match the wildcard
   
   I think their logic is basically the same, otherwise there would be issues 
similar to #14102.
   
   Another potential issue is that in 
[exprlist_to_fields](https://github.com/apache/datafusion/blob/f9cc3325cdb5891b7566a6f3503c1f7ac6ad51e0/datafusion/expr/src/utils.rs#L696),
 we don't handle replace items, but ExpandWildcardRule does.
   `select * replace ('foo' as a) from t` will give the wrong datatype in 
schema before executing analyzer.
   


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