Hi Liu

You can look at 
https://github.com/apache/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorUtils.java#L611

for the method that computes bucket number and hashcode that is needed.

Thanks
Prasanth
> On Sep 14, 2016, at 8:40 PM, Liu Ming <ovis_p...@sina.com> wrote:
> 
> Hi, all,
> I want to study underlying details of Hive bucket code. Given a value, I need 
> to know which bucket it goes to, so I need to understand the HashFunction 
> used in the bucket feature. Could someone helps to point me to the related 
> code? Or any other hint will help me a lot. I spent a few days try to browse 
> the Hive source code, but it is not easy to find out, since I am very new in 
> Hive. Maybe same question already asked in this mail list, if so, sorry about 
> ask it again. I cannot search it out.
> thanks in advance,Ming

Reply via email to