[
https://issues.apache.org/jira/browse/SPARK-34986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon reassigned SPARK-34986:
------------------------------------
Assignee: angerszhu
> 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
> Assignee: 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: [email protected]
For additional commands, e-mail: [email protected]