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

Scott Chen commented on HIVE-656:
---------------------------------

Thanks. Now I see what's going on. 
I run the test with ant "test -Doverwrite=true -Dtest.silent=false". And it 
built successfully. 

But than when I uploaded the diff. I manually removed show_function.q.out in 
the diff because I thought it is from my last change in hive-580. I should have 
also included that file.

I will soon upload the new diff.

> Add a PMOD (POSITIVE_MOD) function
> ----------------------------------
>
>                 Key: HIVE-656
>                 URL: https://issues.apache.org/jira/browse/HIVE-656
>             Project: Hadoop Hive
>          Issue Type: New Feature
>            Reporter: Zheng Shao
>            Assignee: Scott Chen
>         Attachments: hive-656-2009-07-27-1.patch, hive-656-2009-07-27.patch
>
>
> There are a lot of cases people want to get a positive modulo result.
> For example, people want to bucket the data into 10 buckets. They use the 
> hash code in Hive (based on Java) which can return a negative number. Then 
> they need this POSITIVE_MOD(a, b) to return the results.
> Otherwise they can still do it but it will be very verbose:
> {code}
> ((hash(xxx) % 10) + 10) % 10
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to