You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/02/09 01:52:00 UTC
[jira] [Assigned] (SPARK-28646) Allow usage of `count` only for
parameterless aggregate function
[ https://issues.apache.org/jira/browse/SPARK-28646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon reassigned SPARK-28646:
------------------------------------
Assignee: jiaan.geng (was: Apache Spark)
> Allow usage of `count` only for parameterless aggregate function
> ----------------------------------------------------------------
>
> Key: SPARK-28646
> URL: https://issues.apache.org/jira/browse/SPARK-28646
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Dylan Guedes
> Assignee: jiaan.geng
> Priority: Major
> Fix For: 3.1.0
>
>
> Currently, Spark allows calls to `count` even for non parameterless aggregate function. For example, the following query actually works:
> {code:sql}SELECT count() OVER () FROM tenk1;{code}
> In PgSQL, on the other hand, the following error is thrown:
> {code:sql}ERROR: count(*) must be used to call a parameterless aggregate function{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org