You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/03 09:06:00 UTC

[jira] [Commented] (SPARK-27880) Implement boolean aggregates(BOOL_AND, BOOL_OR and EVERY)

    [ https://issues.apache.org/jira/browse/SPARK-27880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854397#comment-16854397 ] 

Yuming Wang commented on SPARK-27880:
-------------------------------------

Presto also support this feature: [https://prestodb.github.io/docs/current/functions/aggregate.html]

> Implement boolean aggregates(BOOL_AND, BOOL_OR and EVERY)
> ---------------------------------------------------------
>
>                 Key: SPARK-27880
>                 URL: https://issues.apache.org/jira/browse/SPARK-27880
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> {code:sql}
> bool_and/booland_statefunc(expression) -- true if all input values are true, otherwise false
> {code}
> {code:sql}
> bool_or/boolor_statefunc(expression) -- true if at least one input value is true, otherwise false
> {code}
> {code:sql}
> every(expression) -- equivalent to bool_and
> {code}
> More details:
>  [https://www.postgresql.org/docs/9.3/functions-aggregate.html]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org