jonahgao commented on PR #13489: URL: https://github.com/apache/datafusion/pull/13489#issuecomment-2490576881
> The less easy part is that > > ```sql > select * from (select 1 as a, 2 as a) t; > ``` > > should work. However, the `*` gets expanded to Expr expressions and these expressions have no way to differentiate between the two columns from `a`. This is because schema is used for both initial query analysis as well as in logical plans. Relates to #1468. We might need to introduce [column index](https://github.com/apache/datafusion/blob/main/datafusion/physical-expr/src/expressions/column.rs#L71) to differentiate them. Since this case was not previously supported either, maybe we can handle it later. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
