Re: ROW_NUMBER() equivalent in Hive

2013-02-21 Thread Owen O'Malley
What are the semantics for ROW_NUMBER? Is it a global row number? Per a partition? Per a bucket? -- Owen On Wed, Feb 20, 2013 at 11:33 PM, kumar mr kumar...@aol.com wrote: Hi, This is Kumar, and this is my first question in this group. I have a requirement to implement ROW_NUMBER() from

Re: ROW_NUMBER() equivalent in Hive

2013-02-21 Thread Ashutosh Chauhan
Kumar, If you are willing to be on bleeding edge, this and many other partitioning and windowing functionality some of us are developing in a branch over at: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing Check out this branch, build hive and than you can have row_number()

Re: ROW_NUMBER() equivalent in Hive

2013-02-21 Thread kumar mr
a Regards, Kumar -Original Message- From: Owen O'Malley omal...@apache.org To: user user@hive.apache.org Sent: Thu, Feb 21, 2013 8:08 am Subject: Re: 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

Re: ROW_NUMBER() equivalent in Hive

2013-02-21 Thread Stephen Boesch
Hi Ashutosh, I am interested / reviewing your windowing feature. Can you be more specific about which (a) tests and (b) src files constitute your additions (there are lots of files there ;) ) thanks stephen boesch 2013/2/21 Ashutosh Chauhan hashut...@apache.org Kumar, If you are

Re: ROW_NUMBER() equivalent in Hive

2013-02-21 Thread Ashutosh Chauhan
Hi Stephen, As I indicated in my previous email, check out file ql/src/test/queries/ clientpositive/ptf_general_queries.q it has plenty of example queries demonstrating the functionality which is available. If you are interested in hive src changes which has enabled this feature.. you may want

ROW_NUMBER() equivalent in Hive

2013-02-20 Thread kumar mr
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