AngersZhuuuu opened a new pull request #32089: URL: https://github.com/apache/spark/pull/32089
### What changes were proposed in this pull request? before when we use aggregate ordinal in group by expression and index position is a aggregate function, it will show error as ``` – !query select a, b, sum(b) from data group by 3 – !query schema struct<> – !query output org.apache.spark.sql.AnalysisException aggregate functions are not allowed in GROUP BY, but found sum(data.b) ``` It't not clear enough refactor this error message in this pr ### Why are the changes needed? refactor error message ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existed UT -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
