nuno-faria opened a new issue, #24773: URL: https://github.com/apache/datafusion/issues/24773
### Describe the bug When an invalid field is provided with a nested query, the error shows duplicate field names. ### To Reproduce ```sql select * from (select 1 as x) t order by y; Schema error: No field named y. Valid fields are t.x, t.x. ``` ### Expected behavior ```sql Schema error: No field named y. Valid fields are t.x. ``` ### Additional context _No response_ -- 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]
