You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Richard Penney (Jira)" <ji...@apache.org> on 2020/10/04 08:47:00 UTC

[jira] [Commented] (SPARK-21117) Built-in SQL Function Support - WIDTH_BUCKET

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

Richard Penney commented on SPARK-21117:
----------------------------------------

This looks like a really useful feature - thanks.

However, I notice that the third version of the postgresql with_bucket() function does not seem to have been implemented yet. This is for the, admittedly rather more subtle, case of a user-supplied array of thresholds.

Have we decided that this partition-with-thresholds capability is not going to be supported, or should we consider reopening this ticket?

> Built-in SQL Function Support - WIDTH_BUCKET
> --------------------------------------------
>
>                 Key: SPARK-21117
>                 URL: https://issues.apache.org/jira/browse/SPARK-21117
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Yuming Wang
>            Assignee: Takeshi Yamamuro
>            Priority: Major
>             Fix For: 3.1.0
>
>
> For a given expression, the {{WIDTH_BUCKET}} function returns the bucket number into which the value of this expression would fall after being evaluated.
> {code:sql}
> WIDTH_BUCKET (expr , min_value , max_value , num_buckets)
> {code}
> Ref: https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2137.htm#OLADM717



--
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