QnaList > Groups > Hive-User > Feb 2013
faq

ROW_NUMBER() Equivalent In Hive

Hi,
This is Kumar, and this is my first question in this group.
I have a requirement to implement ROW_NUMBER() from Teradata in Hive where partitioning happens
on multiple columns along with multiple column ordering. 
It can be easily implemented in Hadoop MR, but I have to do in Hive. By doing in UDF can assign
same rank to grouping key considering dataset is small, but ordering need to be done in prior
step.
Can we do this in lot simpler way? 
Thanks in advance.
Regards,
Kumar

asked Feb 21 2013 at 07:33

kumar mr's gravatar image



1 Replies for : ROW_NUMBER() Equivalent In Hive
What are the semantics for ROW_NUMBER? Is it a global row number? Per a
partition? Per a bucket?
-- Owen

answered Feb 21 2013 at 16:08

Owen O'Malley's gravatar image


Related discussions

Tagged

Group Hive-user

asked Feb 21 2013 at 07:33

active Feb 21 2013 at 16:08

posts:2

users:2

©2013 QnaList.com . QnaList is part of ZisaTechnologies LLC.