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

Carter Shanklin commented on HIVE-15982:
----------------------------------------

I ran a test suite I use against this and noted a few issues in HIVE-16513. I 
think the biggest challenge will be that floating point numbers can't be used. 
I hope I didn't confuse the issue when I said "numeric value expressions" above.

> 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
>              Labels: TODOC3.0
>             Fix For: 3.0.0
>
>         Attachments: HIVE-15982.1.patch, HIVE-15982.2.patch, 
> HIVE-15982.3.patch, HIVE-15982.4.patch, HIVE-15982.5.patch, HIVE-15982.6.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)

Reply via email to