jonahgao opened a new issue, #9161: URL: https://github.com/apache/arrow-datafusion/issues/9161
### Describe the bug When a query includes both a CAST in its select list and a GROUP BY clause, it may fail. For example: ```sql select cast(a as int) from t group by t.a; ``` ### To Reproduce Run the following queries in DataFusion CLI . ```sh DataFusion CLI v35.0.0 ❯ create table t(a bigint); 0 rows in set. Query took 0.007 seconds. ❯ select cast(a as int) from t group by t.a; Schema error: No field named "t.a". Valid fields are t.a. ``` ### Expected behavior Should be successful. ### 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]
