Tpt opened a new pull request, #28000:
URL: https://github.com/apache/datafusion/pull/28000

   ```sql
   SELECT a, 5, max(a) FROM t GROUP BY 2, 1
   ```
   unparsed to
   ```sql
   SELECT a, 5, max(a) FROM t GROUP BY 5, t.a
   ```
   which reads 5 as an output column position.
   it is now rewritten as
   ```sql
   SELECT a, 5, max(a) FROM t GROUP BY 2, t.a
   ```
   if possible if not with a cast to avoid the issue


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

Reply via email to