You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sahil Takiar (JIRA)" <ji...@apache.org> on 2017/04/18 20:13:41 UTC

[jira] [Updated] (HIVE-15982) Support the width_bucket function

     [ https://issues.apache.org/jira/browse/HIVE-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sahil Takiar updated HIVE-15982:
--------------------------------
    Attachment: HIVE-15982.1.patch

Attaching initial patch to get some feedback from Hive QA.

> Support the width_bucket function
> ---------------------------------
>
>                 Key: HIVE-15982
>                 URL: https://issues.apache.org/jira/browse/HIVE-15982
>             Project: Hive
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Carter Shanklin
>            Assignee: Sahil Takiar
>         Attachments: HIVE-15982.1.patch
>
>
> Support the width_bucket(wbo, wbb1, wbb2, wbc) which returns an integer between 0 and wbc+1 by mapping wbo into the ith equally sized bucket made by dividing wbb1 and wbb2 into equally sized regions. If wbo < wbb1, return 1, if wbo > wbb2 return wbc+1. Reference: SQL standard section 4.4.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)