[ https://issues.apache.org/jira/browse/SPARK-34986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17316913#comment-17316913 ]
Apache Spark commented on SPARK-34986: -------------------------------------- User 'AngersZhuuuu' has created a pull request for this issue: https://github.com/apache/spark/pull/32089 > Aggregate ordinal should judge is it contains agg function > ---------------------------------------------------------- > > Key: SPARK-34986 > URL: https://issues.apache.org/jira/browse/SPARK-34986 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.2.0 > Reporter: angerszhu > Priority: Major > > Aggregate ordinal should judge is it contains agg function. > before this change it's > ``` > -- !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) > ``` -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org