alamb opened a new issue, #10413: URL: https://github.com/apache/datafusion/issues/10413
### Describe the bug DataFusion will sometimes resolve expressions incorrectly when the alias shadows an expression ### To Reproduce ```sql DataFusion CLI v37.1.0 > select a + b from (select 1 as a, 2 as b, 1 as "a + b"); +-------+ | a + b | +-------+ | 1 | <- Should be 3 +-------+ 1 row(s) fetched. Elapsed 0.009 seconds. ``` ### Expected behavior Result should be 3 ### Additional context This was found by @peter-toth in https://github.com/apache/datafusion/pull/10396 -- 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.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