GitHub user kiszk opened a pull request:

    https://github.com/apache/spark/pull/21031

    [SPARK-23923][SQL] Add cardinality function

    ## What changes were proposed in this pull request?
    
    The PR adds the SQL function `cardinality`. The behavior of the function is 
based on Presto's one.
    
    The function returns the length of the array or map stored in the column as 
`BigInt`.
    
    ## How was this patch tested?
    
    Added UTs

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kiszk/spark SPARK-23923

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21031.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21031
    
----
commit 89458544b564097f2fa6d34ae654c86f155410df
Author: Kazuaki Ishizaki <ishizaki@...>
Date:   2018-04-10T16:52:36Z

    initial commit

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to